def __init__(self,root,isTKroot = True): className = self.__class__.__name__ Fun.G_UIElementArray[className]={} Fun.G_ElementBindingDataArray[className]={} global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.AddElement(className,'UIClass',self) self.root = root if isTKroot == True: root.title("Form1") root.geometry("432x283") Form_1= tkinter.Canvas(root,width = 10,height = 4) Form_1.place(x = 0,y = 0,width = 432,height = 283) Form_1.configure(bg = "#efefef") Fun.AddElement(className,'root',root) Fun.AddElement(className,'Form_1',Form_1) #Create the elements of root Label_2= tkinter.Label(root,text="快递公司",width = 10,height = 4) Label_2.place(x = 11,y = 15,width = 75,height = 20) Fun.AddElement(className,'Label_2',Label_2) ComboBox_3_Variable = Fun.AddElementVariable(className,'ComboBox_3') ComboBox_3= tkinter.ttk.Combobox(root,textvariable=ComboBox_3_Variable, state="readonly") ComboBox_3.place(x = 107,y = 15,width = 173,height = 20) ComboBox_3.configure(state = "readonly") Fun.AddElement(className,'ComboBox_3',ComboBox_3) Label_4= tkinter.Label(root,text="快递单号",width = 10,height = 4) Label_4.place(x = 11,y = 55,width = 75,height = 20) Fun.AddElement(className,'Label_4',Label_4) Entry_5_Variable = Fun.AddElementVariable(className,'Entry_5') Entry_5= tkinter.Entry(root,textvariable=Entry_5_Variable) Entry_5.place(x = 107,y = 56,width = 172,height = 20) Entry_5.configure(relief = "sunken") Fun.AddElement(className,'Entry_5',Entry_5) Button_6= tkinter.Button(root,text="查询",width = 10,height = 4) Button_6.place(x = 297,y = 53,width = 100,height = 28) Button_6.configure(command=lambda:Express_Query_cmd.Button_6_onCommand(className,"Button_6")) Fun.AddElement(className,'Button_6',Button_6) ListBox_7= tkinter.Listbox(root) ListBox_7.place(x = 24,y = 101,width = 372,height = 160) Fun.AddElement(className,'ListBox_7',ListBox_7) import Express Express_9=Express.Express() #Express_9.xy(186,74) Express_9.set_CompanyID('4') Express_9.set_ExpressNumber('0000001') Express_9.set_ComboBox(ComboBox_3) Fun.AddElement(className,'Express_9',Express_9) CheckButton_10_Variable = Fun.AddElementVariable(className,'CheckButton_10') CheckButton_10_Variable.set(False) CheckButton_10= tkinter.Checkbutton(root,variable=CheckButton_10_Variable,text="多线程查询",anchor=tkinter.W) CheckButton_10.place(x = 302,y = 20,width = 100,height = 20) Fun.AddElement(className,'CheckButton_10',CheckButton_10) #Inital all element's Data Fun.InitElementData(className)
def __init__(self, root, isTKroot=True): className = self.__class__.__name__ Fun.G_UIElementArray[className] = {} Fun.G_ElementBindingDataArray[className] = {} global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.AddElement(className, 'UIClass', self) self.root = root if isTKroot == True: root.title("Form1") root.geometry("543x244") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=543, height=244) Form_1.configure(bg="#efefef") Fun.AddElement(className, 'root', root) Fun.AddElement(className, 'Form_1', Form_1) #Create the elements of root Entry_2_Variable = Fun.AddElementVariable(className, 'Entry_2') Entry_2 = tkinter.Entry(root, textvariable=Entry_2_Variable) Entry_2.place(x=93, y=20, width=120, height=20) Entry_2.configure(bg="#ffffff") Entry_2.configure(relief="sunken") Fun.AddUIData(className, 'Entry_2', 'IPAddr', 'string', '127.0.0.1', 1) Fun.AddElement(className, 'Entry_2', Entry_2) Label_3 = tkinter.Label(root, text="端口", width=10, height=4) Label_3.place(x=216, y=19, width=74, height=20) Fun.AddElement(className, 'Label_3', Label_3) Entry_4_Variable = Fun.AddElementVariable(className, 'Entry_4') Entry_4 = tkinter.Entry(root, textvariable=Entry_4_Variable) Entry_4.place(x=294, y=19, width=120, height=20) Entry_4.configure(relief="sunken") Fun.AddUIData(className, 'Entry_4', 'Port', 'int', 8888, 1) Fun.AddElement(className, 'Entry_4', Entry_4) Button_5 = tkinter.Button(root, text="启动", width=10, height=4) Button_5.place(x=433, y=16, width=100, height=28) Button_5.configure(command=lambda: Server_cmd.Button_5_onCommand( className, "Button_5")) Fun.AddElement(className, 'Button_5', Button_5) ListBox_6 = tkinter.Listbox(root) ListBox_6.place(x=21, y=57, width=394, height=160) Fun.AddElement(className, 'ListBox_6', ListBox_6) Label_7 = tkinter.Label(root, text="IP地址", width=10, height=4) Label_7.place(x=4, y=21, width=74, height=20) Fun.AddElement(className, 'Label_7', Label_7) import MySocket MySocket_9 = MySocket.MySocket() #MySocket_9.xy(4,21) MySocket_9.set_HOST('127.0.0.1') MySocket_9.set_PORT('8888') MySocket_9.set_LISTBOX(ListBox_6) Fun.AddElement(className, 'MySocket_9', MySocket_9) #Inital all element's Data Fun.InitElementData(className)
def __init__(self, root, isTKroot=True): className = self.__class__.__name__ Fun.G_UIElementArray[className] = {} Fun.G_ElementBindingDataArray[className] = {} global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.AddElement(className, 'UIClass', self) self.root = root style = Server_sty.SetupStyle() if isTKroot == True: root.title("Form1") root.geometry("543x244") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=543, height=244) Form_1.configure(bg="#efefef") Fun.AddElement(className, 'root', root) Fun.AddElement(className, 'Form_1', Form_1) #Create the elements of root Entry_2_Variable = Fun.AddElementVariable(className, 'Entry_2') Entry_2 = tkinter.Entry(root, textvariable=Entry_2_Variable) Entry_2.place(x=93, y=20, width=120, height=20) Entry_2.configure(bg="#ffffff") Entry_2.configure(relief="sunken") Fun.AddUIData(className, 'Entry_2', 'IPAddr', 'string', '127.0.0.1', 1) Fun.AddElement(className, 'Entry_2', Entry_2) Label_3 = tkinter.Label(root, text="端口", width=10, height=4) Label_3.place(x=216, y=19, width=74, height=20) Label_3_Ft
def __init__(self, root, isTKroot=True): className = self.__class__.__name__ Fun.G_UIElementArray[className] = {} Fun.G_ElementBindingDataArray[className] = {} global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.AddElement(className, 'UIClass', self) self.root = root style = WebbrowserProject_sty.SetupStyle() if isTKroot == True: root.title("Form1") root.wm_attributes("-topmost", 1) root.geometry("1283x793") root.bind('<Configure>', self.Configure) Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=1283, height=793) Form_1.configure(bg="#efefef") Form_1.configure(highlightthickness=0) Fun.AddElement(className, 'root', root) Fun.AddElement(className, 'Form_1', Form_1) #Create the elements of root Frame_2 = tkinter.Frame(root) Frame_2.place(x=0, y=30, width=992, height=673) Frame_2.configure(bg="#888888") Frame_2.configure(relief="flat") Fun.AddElement(className, 'Frame_2', Frame_2) Entry_3_Variable = Fun.AddElementVariable(className, 'Entry_3') Entry_3 = tkinter.Entry(root, textvariable=Entry_3_Variable) Entry_3.place(x=155, y=7, width=710, height=20) Entry_3.configure(relief="sunken") Entry_3.bind( "<Button-1>", Fun.EventFunction_Adaptor(WebbrowserProject_cmd.Entry_3_onButton1, className=className, widgetName="Entry_3")) Fun.AddElement(className, 'Entry_3', Entry_3) Button_4 = tkinter.Button(root, text="GO", width=10, height=4) Button_4.place(x=888, y=3, width=100, height=24) Button_4.configure(command=lambda: WebbrowserProject_cmd. Button_4_onCommand(className, "Button_4")) Fun.AddElement(className, 'Button_4', Button_4) import Webbrowser Webbrowser_5 = Webbrowser.Webbrowser() #Webbrowser_5.xy(24,46) Webbrowser_5.set_Frame(Frame_2) Webbrowser_5.set_URL('http://www.baidu.com') Fun.AddElement(className, 'Webbrowser_5', Webbrowser_5) Button_7 = tkinter.Button(root, text="Button", width=10, height=4) Button_7.place(x=0, y=1, width=32, height=28) ElementBGArray[7] = Image.open("back.png").convert('RGBA') ElementBGArray_Resize[7] = ElementBGArray[7].resize((32, 28), Image.ANTIALIAS) ElementBGArray_IM[7] = ImageTk.PhotoImage(ElementBGArray_Resize[7]) Button_7.configure(image=ElementBGArray_IM[7]) Button_7.configure(command=lambda: WebbrowserProject_cmd. Button_7_onCommand(className, "Button_7")) Fun.AddElement(className, 'Button_7', Button_7) Button_8 = tkinter.Button(root, text="Button", width=10, height=4) Button_8.place(x=35, y=1, width=32, height=28) ElementBGArray[8] = Image.open("front.png").convert('RGBA') ElementBGArray_Resize[8] = ElementBGArray[8].resize((32, 28), Image.ANTIALIAS) ElementBGArray_IM[8] = ImageTk.PhotoImage(ElementBGArray_Resize[8]) Button_8.configure(image=ElementBGArray_IM[8]) Button_8.configure(command=lambda: WebbrowserProject_cmd. Button_8_onCommand(className, "Button_8")) Fun.AddElement(className, 'Button_8', Button_8) Button_9 = tkinter.Button(root, text="Button", width=10, height=4) Button_9.place(x=70, y=1, width=34, height=28) ElementBGArray[9] = Image.open("refresh.png").convert('RGBA') ElementBGArray_Resize[9] = ElementBGArray[9].resize((34, 28), Image.ANTIALIAS) ElementBGArray_IM[9] = ImageTk.PhotoImage(ElementBGArray_Resize[9]) Button_9.configure(image=ElementBGArray_IM[9]) Button_9.configure(command=lambda: WebbrowserProject_cmd. Button_9_onCommand(className, "Button_9")) Fun.AddElement(className, 'Button_9', Button_9) Button_10 = tkinter.Button(root, text="Button", width=10, height=4) Button_10.place(x=107, y=1, width=36, height=28) ElementBGArray[10] = Image.open("home.png").convert('RGBA') ElementBGArray_Resize[10] = ElementBGArray[10].resize((36, 28), Image.ANTIALIAS) ElementBGArray_IM[10] = ImageTk.PhotoImage(ElementBGArray_Resize[10]) Button_10.configure(image=ElementBGArray_IM[10]) Button_10.configure(command=lambda: WebbrowserProject_cmd. Button_10_onCommand(className, "Button_10")) Fun.AddElement(className, 'Button_10', Button_10) #Inital all element's Data Fun.InitElementData(className) #Call Form_1's OnLoad Function WebbrowserProject_cmd.Form_1_onLoad(className)
def __init__(self, root, isTKroot=True): className = self.__class__.__name__ Fun.G_UIElementArray[className] = {} Fun.G_ElementBindingDataArray[className] = {} global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.AddElement(className, 'UIClass', self) self.root = root if isTKroot == True: root.title("Form1") root.geometry("564x296") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=564, height=296) Form_1.configure(bg="#efefef") Fun.AddElement(className, 'root', root) Fun.AddElement(className, 'Form_1', Form_1) #Create the elements of root Label_2 = tkinter.Label(root, text="服务器IP", width=10, height=4) Label_2.place(x=15, y=15, width=69, height=20) Label_2.configure(bg="#efefef") Fun.AddElement(className, 'Label_2', Label_2) Entry_3_Variable = Fun.AddElementVariable(className, 'Entry_3') Entry_3 = tkinter.Entry(root, textvariable=Entry_3_Variable) Entry_3.place(x=99, y=15, width=120, height=20) Entry_3.configure(relief="sunken") Fun.AddUIData(className, 'Entry_3', 'IPAddr', 'string', '127.0.0.1', 1) Fun.AddElement(className, 'Entry_3', Entry_3) Label_4 = tkinter.Label(root, text="服务器端口", width=10, height=4) Label_4.place(x=235, y=14, width=69, height=20) Fun.AddElement(className, 'Label_4', Label_4) Entry_5_Variable = Fun.AddElementVariable(className, 'Entry_5') Entry_5 = tkinter.Entry(root, textvariable=Entry_5_Variable) Entry_5.place(x=315, y=13, width=120, height=20) Entry_5.configure(relief="sunken") Fun.AddUIData(className, 'Entry_5', 'Port', 'int', '8888', 1) Fun.AddElement(className, 'Entry_5', Entry_5) Label_6 = tkinter.Label(root, text="发送内容", width=10, height=4) Label_6.place(x=14, y=49, width=69, height=20) Fun.AddElement(className, 'Label_6', Label_6) Entry_7_Variable = Fun.AddElementVariable(className, 'Entry_7') Entry_7 = tkinter.Entry(root, textvariable=Entry_7_Variable) Entry_7.place(x=99, y=49, width=335, height=20) Entry_7.configure(relief="sunken") Fun.AddElement(className, 'Entry_7', Entry_7) Button_8 = tkinter.Button(root, text="连接", width=10, height=4) Button_8.place(x=448, y=10, width=100, height=28) Button_8.configure(command=lambda: Client_cmd.Button_8_onCommand( className, "Button_8")) Fun.AddElement(className, 'Button_8', Button_8) Button_9 = tkinter.Button(root, text="发送", width=10, height=4) Button_9.place(x=448, y=45, width=100, height=28) Button_9.configure(command=lambda: Client_cmd.Button_9_onCommand( className, "Button_9")) Fun.AddElement(className, 'Button_9', Button_9) ListBox_10 = tkinter.Listbox(root) ListBox_10.place(x=21, y=87, width=528, height=197) Fun.AddElement(className, 'ListBox_10', ListBox_10) import MySocket MySocket_11 = MySocket.MySocket() #MySocket_11.xy(21,87) MySocket_11.set_HOST('127.0.0.1') MySocket_11.set_PORT('8888') MySocket_11.set_LISTBOX(ListBox_10) Fun.AddElement(className, 'MySocket_11', MySocket_11) #Inital all element's Data Fun.InitElementData(className)
def __init__(self,root,isTKroot = True): className = self.__class__.__name__ Fun.G_UIElementArray[className]={} Fun.G_ElementBindingDataArray[className]={} global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.AddElement(className,'UIClass',self) self.root = root if isTKroot == True: root.title("股票监控") root.geometry("906x363") Form_1= tkinter.Canvas(root,width = 10,height = 4) Form_1.place(x = 0,y = 0,width = 906,height = 363) Form_1.configure(bg = "#efefef") Fun.AddElement(className,'root',root) Fun.AddElement(className,'Form_1',Form_1) #Create the elements of root Label_2= tkinter.Label(root,text="股票代码",width = 10,height = 4) Label_2.place(x = -22,y = 27,width = 107,height = 22) Fun.AddElement(className,'Label_2',Label_2) Entry_3_Variable = Fun.AddElementVariable(className,'Entry_3') Entry_3= tkinter.Entry(root,textvariable=Entry_3_Variable) Entry_3.place(x = 68,y = 29,width = 164,height = 20) Entry_3.configure(relief = "sunken") Fun.AddElement(className,'Entry_3',Entry_3) Button_4= tkinter.Button(root,text="增加股票",width = 10,height = 4) Button_4.place(x = 463,y = 24,width = 100,height = 28) Button_4.configure(command=lambda:StockPrice_cmd.Button_4_onCommand(className,"Button_4")) Fun.AddElement(className,'Button_4',Button_4) Button_6= tkinter.Button(root,text="启动监控",width = 10,height = 4) Button_6.place(x = 790,y = 25,width = 100,height = 28) Button_6.configure(command=lambda:StockPrice_cmd.Button_6_onCommand(className,"Button_6")) Fun.AddElement(className,'Button_6',Button_6) Label_9= tkinter.Label(root,text="最高价",width = 10,height = 4) Label_9.place(x = 179,y = 27,width = 55,height = 20) Fun.AddElement(className,'Label_9',Label_9) Entry_10_Variable = Fun.AddElementVariable(className,'Entry_10') Entry_10= tkinter.Entry(root,textvariable=Entry_10_Variable) Entry_10.place(x = 380,y = 28,width = 76,height = 20) Entry_10.configure(relief = "sunken") Fun.AddElement(className,'Entry_10',Entry_10) Label_11= tkinter.Label(root,text="最低价",width = 10,height = 4) Label_11.place(x = 315,y = 25,width = 55,height = 20) Fun.AddElement(className,'Label_11',Label_11) Entry_12_Variable = Fun.AddElementVariable(className,'Entry_12') Entry_12= tkinter.Entry(root,textvariable=Entry_12_Variable) Entry_12.place(x = 235,y = 26,width = 70,height = 20) Entry_12.configure(relief = "sunken") Fun.AddElement(className,'Entry_12',Entry_12) TreeView_13= tkinter.ttk.Treeview(root,show="tree") TreeView_13.place(x = 17,y = 65,width = 875,height = 291) TreeView_13.configure(show = "headings") TreeView_13.configure(selectmode = "extended") TreeView_13.configure(columns = ["股票代码","股票名称","当前时间","当前价","限制最高","限制最低","警报"]) TreeView_13.column("股票代码",anchor="center",width=90) TreeView_13.heading("股票代码",text="股票代码") TreeView_13.column("股票名称",anchor="center",width=90) TreeView_13.heading("股票名称",text="股票名称") TreeView_13.column("当前时间",anchor="center",width=90) TreeView_13.heading("当前时间",text="当前时间") TreeView_13.column("当前价",anchor="center",width=80) TreeView_13.heading("当前价",text="当前价") TreeView_13.column("限制最高",anchor="center",width=80) TreeView_13.heading("限制最高",text="限制最高") TreeView_13.column("限制最低",anchor="center",width=80) TreeView_13.heading("限制最低",text="限制最低") TreeView_13.column("警报",anchor="center",width=100) TreeView_13.heading("警报",text="警报") Fun.AddUIData(className,'TreeView_13','StockArray','list',[],0) Fun.AddElement(className,'TreeView_13',TreeView_13) Label_16= tkinter.Label(root,text="通知手机",width = 10,height = 4) Label_16.place(x = 571,y = 26,width = 81,height = 23) Fun.AddElement(className,'Label_16',Label_16) Entry_17_Variable = Fun.AddElementVariable(className,'Entry_17') Entry_17= tkinter.Entry(root,textvariable=Entry_17_Variable) Entry_17.place(x = 652,y = 28,width = 126,height = 20) Entry_17.configure(relief = "sunken") Fun.AddElement(className,'Entry_17',Entry_17) #Inital all element's Data Fun.InitElementData(className)
def __init__(self, root, isTKroot=True): className = self.__class__.__name__ Fun.G_UIElementArray[className] = {} Fun.G_ElementBindingDataArray[className] = {} global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.AddElement(className, 'UIClass', self) self.root = root if isTKroot == True: root.title("Form1") root.geometry("454x410") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=454, height=410) Form_1.configure(bg="#efefef") Fun.AddElement(className, 'root', root) Fun.AddElement(className, 'Form_1', Form_1) Group_1_Variable = Fun.AddElementVariable(className, 'Group_1') Group_1_Variable.set(1) #Create the elements of root Label_2 = tkinter.Label(root, text="", width=10, height=4) Label_2.place(x=48, y=33, width=77, height=48) ElementBGArray[2] = Image.open("ico1.png") ElementBGArray_Resize[2] = ElementBGArray[2].resize((77, 48), Image.ANTIALIAS) ElementBGArray_IM[2] = ImageTk.PhotoImage(ElementBGArray_Resize[2]) Label_2.configure(image=ElementBGArray_IM[2]) Label_2_Ft = tkinter.font.Font(family='System', size=24, weight='bold', slant='roman', underline=0, overstrike=0) Label_2.configure(font=Label_2_Ft) Fun.AddElement(className, 'Label_2', Label_2) Label_3 = tkinter.Label(root, text="注册信息", width=10, height=4) Label_3.place(x=134, y=34, width=256, height=45) Label_3_Ft = tkinter.font.Font(family='System', size=29, weight='bold', slant='roman', underline=0, overstrike=0) Label_3.configure(font=Label_3_Ft) Fun.AddElement(className, 'Label_3', Label_3) Label_4 = tkinter.Label(root, text="姓名", width=10, height=4) Label_4.place(x=53, y=111, width=100, height=20) Fun.AddElement(className, 'Label_4', Label_4) Entry_5_Variable = Fun.AddElementVariable(className, 'Entry_5') Entry_5 = tkinter.Entry(root, textvariable=Entry_5_Variable) Entry_5.place(x=175, y=110, width=120, height=20) Entry_5.configure(relief="sunken") Fun.AddElement(className, 'Entry_5', Entry_5) Label_6 = tkinter.Label(root, text="性别", width=10, height=4) Label_6.place(x=54, y=146, width=100, height=20) Fun.AddElement(className, 'Label_6', Label_6) RadioButton_7 = tkinter.Radiobutton(root, variable=Group_1_Variable, value=1, text="男", anchor=tkinter.W) RadioButton_7.place(x=173, y=147, width=48, height=20) Fun.AddElement(className, 'RadioButton_7', RadioButton_7) RadioButton_8 = tkinter.Radiobutton(root, variable=Group_1_Variable, value=2, text="女", anchor=tkinter.W) RadioButton_8.place(x=243, y=149, width=48, height=20) Fun.AddElement(className, 'RadioButton_8', RadioButton_8) Label_9 = tkinter.Label(root, text="邮箱", width=10, height=4) Label_9.place(x=54, y=181, width=100, height=20) Fun.AddElement(className, 'Label_9', Label_9) Entry_10_Variable = Fun.AddElementVariable(className, 'Entry_10') Entry_10 = tkinter.Entry(root, textvariable=Entry_10_Variable) Entry_10.place(x=175, y=185, width=195, height=20) Entry_10.configure(relief="sunken") Fun.AddElement(className, 'Entry_10', Entry_10) Label_11 = tkinter.Label(root, text="个人简介", width=10, height=4) Label_11.place(x=55, y=220, width=100, height=20) Fun.AddElement(className, 'Label_11', Label_11) Text_12 = tkinter.Text(root) Text_12.place(x=175, y=220, width=240, height=120) Text_12.configure(relief="sunken") Fun.AddElement(className, 'Text_12', Text_12) Button_13 = tkinter.Button(root, text="确定", width=10, height=4) Button_13.place(x=176, y=354, width=100, height=28) Button_13.configure(command=lambda: RegDlg_cmd.Button_13_onCommand( className, "Button_13")) Fun.AddElement(className, 'Button_13', Button_13) Button_14 = tkinter.Button(root, text="取消", width=10, height=4) Button_14.place(x=310, y=354, width=100, height=28) Button_14.configure(command=lambda: RegDlg_cmd.Button_14_onCommand( className, "Button_14")) Fun.AddElement(className, 'Button_14', Button_14) #Inital all element's Data Fun.InitElementData(className)
def __init__(self, root, isTKroot=True): className = self.__class__.__name__ Fun.G_UIElementArray[className] = {} Fun.G_ElementBindingDataArray[className] = {} global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.AddElement(className, 'UIClass', self) self.root = root if isTKroot == True: root.title("Form1") root.geometry("574x150") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=574, height=150) Form_1.configure(bg="#efefef") Fun.AddElement(className, 'root', root) Fun.AddElement(className, 'Form_1', Form_1) Group_1_Variable = Fun.AddElementVariable(className, 'Group_1') Group_1_Variable.set(1) #Create the elements of root Label_2 = tkinter.Label(root, text="姓名", width=10, height=4) Label_2.place(x=18, y=13, width=82, height=20) Fun.AddElement(className, 'Label_2', Label_2) Entry_3_Variable = Fun.AddElementVariable(className, 'Entry_3') Entry_3 = tkinter.Entry(root, textvariable=Entry_3_Variable) Entry_3.place(x=120, y=14, width=120, height=20) Entry_3.configure(relief="sunken") Fun.AddElement(className, 'Entry_3', Entry_3) Label_4 = tkinter.Label(root, text="性别", width=10, height=4) Label_4.place(x=18, y=44, width=82, height=20) Fun.AddElement(className, 'Label_4', Label_4) RadioButton_5 = tkinter.Radiobutton(root, variable=Group_1_Variable, value=1, text="男", anchor=tkinter.W) RadioButton_5.place(x=116, y=45, width=68, height=19) Fun.AddElement(className, 'RadioButton_5', RadioButton_5) RadioButton_6 = tkinter.Radiobutton(root, variable=Group_1_Variable, value=2, text="女", anchor=tkinter.W) RadioButton_6.place(x=191, y=44, width=100, height=20) Fun.AddElement(className, 'RadioButton_6', RadioButton_6) Label_7 = tkinter.Label(root, text="年龄", width=10, height=4) Label_7.place(x=18, y=78, width=82, height=20) Fun.AddElement(className, 'Label_7', Label_7) Entry_8_Variable = Fun.AddElementVariable(className, 'Entry_8') Entry_8 = tkinter.Entry(root, textvariable=Entry_8_Variable) Entry_8.place(x=121, y=75, width=120, height=20) Entry_8.configure(relief="sunken") Fun.AddElement(className, 'Entry_8', Entry_8) Label_9 = tkinter.Label(root, text="地址", width=10, height=4) Label_9.place(x=18, y=110, width=82, height=20) Fun.AddElement(className, 'Label_9', Label_9) ComboBox_10_Variable = Fun.AddElementVariable(className, 'ComboBox_10') ComboBox_10 = tkinter.ttk.Combobox(root, textvariable=ComboBox_10_Variable, state="readonly") ComboBox_10.place(x=120, y=110, width=124, height=20) ComboBox_10.configure(state="readonly") ComboBox_10["values"] = ['北京', '天津', '上海'] ComboBox_10.current(0) Fun.AddElement(className, 'ComboBox_10', ComboBox_10) Button_11 = tkinter.Button(root, text="增加", width=10, height=4) Button_11.place(x=448, y=103, width=100, height=28) Button_11.configure(command=lambda: Page1_cmd.Button_11_onCommand( className, "Button_11")) Fun.AddElement(className, 'Button_11', Button_11) #Inital all element's Data Fun.InitElementData(className)