# Copyright 2009 Autodesk, Inc. All rights reserved. # Use of this software is subject to the terms of the Autodesk license agreement # provided at the time of installation or download, or which otherwise accompanies # this software in either electronic or hard copy form. # # Script description: # This tool is used with ToolCommunicationSender. The Sender will "ping" the receiver. # This tool provide a vertical list used to display the "ping" # # Topic: FBList, FBListStyle, FBTool # from pyfbsdk import * from pyfbsdk_additions import * # Tool creation will serve as the hub for all other controls t = CreateUniqueTool("Receiver") t.StartSizeX = 400 t.StartSizeY = 400 x = FBAddRegionParam(0,FBAttachType.kFBAttachLeft,"") y = FBAddRegionParam(0,FBAttachType.kFBAttachTop,"") w = FBAddRegionParam(0,FBAttachType.kFBAttachRight,"") h = FBAddRegionParam(0,FBAttachType.kFBAttachBottom,"") t.AddRegion("main","main", x, y, w, h) t.receivedList = FBList() t.receivedList.Style = FBListStyle.kFBVerticalList t.SetControl("main",t.receivedList) ShowTool(t)