12 from pyfbsdk_additions
import *
15 "No Border" : FBBorderStyle.kFBNoBorder,
16 "Standard" : FBBorderStyle.kFBStandardBorder,
17 "Emboss" : FBBorderStyle.kFBEmbossBorder,
18 "EmbossEdgeSmooth" : FBBorderStyle.kFBEmbossEdgeSmoothBorder,
19 "EmbossSmooth" : FBBorderStyle.kFBEmbossSmoothBorder,
20 "EmbossSmoothEdge" : FBBorderStyle.kFBEmbossSmoothEdgeBorder,
21 "Highlight" : FBBorderStyle.kFBHighlightBorder,
22 "Picking" : FBBorderStyle.kFBPickingBorder,
23 "Standard (again)" : FBBorderStyle.kFBStandardBorder,
24 "StandardEdgeSmooth" : FBBorderStyle.kFBStandardEdgeSmoothBorder,
25 "StandardSmooth" : FBBorderStyle.kFBStandardSmoothBorder,
26 "StandardSmoothEdge" : FBBorderStyle.kFBStandardSmoothEdgeBorder
29 def OnInset(control,event):
30 for name, style
in regionStyles.iteritems():
31 regionLyt.SetBorder(name,style,
True, control.State,2,2,90,0)
34 def PopulateLayout(mainLyt):
40 cb.Style = FBButtonStyle.kFBCheckbox
42 cb.OnClick.Add(OnInset)
45 mainLyt.AddRegion(
"Inset",
"Inset",x,y,w,h)
46 mainLyt.SetControl(
"Inset",cb)
51 regionNames = regionStyles.keys()
53 yAttach = FBAttachType.kFBAttachBottom
56 xAttach = FBAttachType.kFBAttachLeft
64 regionName = regionNames[i * 4 + j]
66 mainLyt.AddRegion(regionName,regionName, x, y, w, h)
67 mainLyt.SetBorder(regionName,regionStyles[regionName],
True,
False,2,2,90,0)
69 xAttach = FBAttachType.kFBAttachRight
70 xAttachTo = regionName
72 yAttach = FBAttachType.kFBAttachBottom
73 yAttachTo = regionName