from pyfbsdk import *
from pyfbsdk_additions import *
def PopulateLayout(mainLyt):
x = FBAddRegionParam(0,FBAttachType.kFBAttachLeft,"")
y = FBAddRegionParam(0,FBAttachType.kFBAttachTop,"")
w = FBAddRegionParam(0,FBAttachType.kFBAttachRight,"")
h = FBAddRegionParam(0,FBAttachType.kFBAttachBottom,"")
mainLyt.AddRegion("main","main", x, y, w, h)
th = FBThermometer()
th.Min = -35
th.Max = 35
th.Value = 17
mainLyt.SetControl("main",th)
def CreateTool():
t = CreateUniqueTool("Thermometer Tool Example")
t.StartSizeX = 200
t.StartSizeY = 200
PopulateLayout(t)
ShowTool(t)
CreateTool()