1
2
3
4
5
6
7
8
9
10
11
12
13from pyfbsdk import *
14from pyfbsdk_additions import *
15
16def OnChange(control,event):
17 print(control.Text)
18
19def PopulateLayout(mainLyt):
20
22
23 x = FBAddRegionParam(0,FBAttachType.kFBAttachLeft,"")
24 y = FBAddRegionParam(0,FBAttachType.kFBAttachTop,"")
25 w = FBAddRegionParam(0,FBAttachType.kFBAttachRight,"")
26 h = FBAddRegionParam(0,FBAttachType.kFBAttachBottom,"")
27
28 mainLyt.AddRegion("memo","memo", x, y, w, h)
29
30 mainLyt.SetControl("memo",m)
31
33 sl.Add ("String 1")
34 sl.Add ("String 2")
35
36 m.SetStrings(sl)
37
39 m.GetStrings(sl2)
40 print("printing string list")
41 for s in sl2:
42 print(s)
43
44 m.OnChange.Add(OnChange)
45
46def CreateTool():
47
48 t = FBCreateUniqueTool("Memo Example")
49
50 t.StartSizeX = 300
51 t.StartSizeY = 300
52
53 PopulateLayout(t)
54 ShowTool(t)
55
56
57CreateTool()
58
59
Multi-line text input.
Definition: pyfbsdk_generated.h:10680
String list.
Definition: pyfbsdk_generated.h:18524