完整代码:
from pyfbsdk import *
from pyfbsdk_additions import *
# 回调函数
def BtnCallback(control,event):
CloseTool(t)
print e1.Value
print e2.Value
print e3.Value
print e.Value
# FBEditVector
def PopulateLayout(mainLyt):
editStyles = ["FBEditVector", "FBEditVector", "FBEditVector", "FBEditVector" ]
global edits
edits = {
}
anchor = ""
attachType = FBAttachType.kFBAttachTop
index = 0
for style in editStyles:
# 创建label
labId = "Label{}{}".format(style, index)
l = FBLabel()
l.Caption = style
x = FBAddRegionParam(10,FBAttachType.kFBAttachLeft,"")
y