1
2
3
4
5
6
7
8
9
10
11
12from pyfbsdk import *
13from pyfbsdk_additions import *
14
15def PopulateLayout(mainLyt):
16 x = FBAddRegionParam(0,FBAttachType.kFBAttachLeft,"")
17 y = FBAddRegionParam(0,FBAttachType.kFBAttachTop,"")
18 w = FBAddRegionParam(0,FBAttachType.kFBAttachRight,"")
19 h = FBAddRegionParam(0,FBAttachType.kFBAttachBottom,"")
20 mainLyt.AddRegion("main","main", x, y, w, h)
21
23 th.Min = -35
24 th.Max = 35
25 th.Value = 17
26
27 mainLyt.SetControl("main",th)
28
29
30def CreateTool():
31
32 t = FBCreateUniqueTool("Thermometer Tool Example")
33 t.StartSizeX = 200
34 t.StartSizeY = 200
35 PopulateLayout(t)
36 ShowTool(t)
37
38CreateTool()
Thermometer.
Definition: pyfbsdk_generated.h:19570