from pyfbsdk import *
from pyfbsdk_additions import *
def PopulateLayout(mainLyt):
x = FBAddRegionParam(0,FBAttachType.kFBAttachLeft,"")
y = FBAddRegionParam(0,FBAttachType.kFBAttachTop,"")
w = FBAddRegionParam(50,FBAttachType.kFBAttachNone,"")
h = FBAddRegionParam(50,FBAttachType.kFBAttachNone,"")
mainLyt.AddRegion("main","main", x, y, w, h)
img = FBImageContainer()
img.Filename = "tape/tape_play_off.tif"
mainLyt.SetControl("main",img)
def CreateTool():
t = CreateUniqueTool("Image Container Example")
PopulateLayout(t)
t.StartSizeX = 400
t.StartSizeY = 400
ShowTool(t)
CreateTool()