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("611x320") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=611, height=320) Form_1.configure(bg="#efefef") Fun.AddElement(className, 'root', root) Fun.AddElement(className, 'Form_1', Form_1) #Create the elements of root TreeView_2 = tkinter.ttk.Treeview(root, show="tree") TreeView_2.place(x=8, y=8, width=593, height=301) TreeView_2.configure(show="headings") TreeView_2.configure(selectmode="extended") TreeView_2.configure(columns=["姓名", "性别", "年龄", "地址"]) TreeView_2.column("姓名", anchor="center", width=100) TreeView_2.heading("姓名", text="姓名") TreeView_2.column("性别", anchor="center", width=100) TreeView_2.heading("性别", text="性别") TreeView_2.column("年龄", anchor="center", width=100) TreeView_2.heading("年龄", text="年龄") TreeView_2.column("地址", anchor="center", width=240) TreeView_2.heading("地址", text="地址") Fun.AddElement(className, 'TreeView_2', TreeView_2) #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("629x510") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=629, height=510) Form_1.configure(bg="#efefef") Fun.AddElement(className, 'root', root) Fun.AddElement(className, 'Form_1', Form_1) #Create the elements of root Canvas_2 = tkinter.Canvas(root) Canvas_2.place(x=9, y=13, width=609, height=160) Page1.Page1(Canvas_2, False) Fun.AddElement(className, 'Canvas_2', Canvas_2) NoteBook_3 = tkinter.ttk.Notebook(root, cursor="spider") NoteBook_3.place(x=10, y=188, width=606, height=312) PageFrame_1 = tkinter.ttk.Frame(NoteBook_3) PageFrame_1.place(x=15, y=213, width=596, height=282) TabPage1.TabPage1(PageFrame_1, False) NoteBook_3.add(PageFrame_1, text="TabPage1") PageFrame_2 = tkinter.ttk.Frame(NoteBook_3) PageFrame_2.place(x=15, y=213, width=596, height=282) TabPage2.TabPage2(PageFrame_2, False) NoteBook_3.add(PageFrame_2, text="TabPage2") Fun.AddElement(className, 'NoteBook_3', NoteBook_3) #Inital all element's Data Fun.InitElementData(className)
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.G_UIElementArray[uiName] = {} Fun.G_UIElementUserDataArray[uiName] = {} Fun.Register(uiName, 'UIClass', self) self.root = root style = RightTextBar_sty.SetupStyle() if isTKroot == True: root.title("Form1") root.wm_attributes("-topmost", 1) root.geometry("607x585") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=607, height=549) Form_1.configure(bg="#333333") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'root', root) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root Text_2 = tkinter.Text(root) Text_2.place(x=0, y=0, width=607, height=549) Text_2.configure(bg="#333333") Text_2.configure(fg="#ffffff") Text_2.configure(relief="sunken") Text_2_Scrollbar = tkinter.Scrollbar(Text_2, orient=tkinter.VERTICAL) Text_2_Scrollbar.place(x=587, y=0, width=20, height=549) Text_2_Scrollbar.config(command=Text_2.yview) Text_2.config(yscrollcommand=Text_2_Scrollbar.set) Fun.Register(uiName, 'Text_2', Text_2) Fun.Register(uiName, 'Text_2_Scrollbar', Text_2_Scrollbar) #Inital all element's Data Fun.InitElementData(uiName) #Add Some Logic Code Here: (Keep This Line of comments) root.bind('<Configure>', self.Configure)
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.Register(uiName, 'UIClass', self) self.root = root style = MyWindow_sty.SetupStyle() if isTKroot == True: root.title("Form1") Fun.CenterDlg(uiName, root, 580, 393) root['background'] = '#efefef' Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=580, height=393) Form_1.configure(bg="#efefef") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'root', root) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root NoteBook_2 = tkinter.ttk.Notebook(root) Fun.Register(uiName, 'NoteBook_2', NoteBook_2) NoteBook_2.place(x=6, y=2, width=571, height=383) PageFrame_1 = tkinter.ttk.Frame(NoteBook_2) PageFrame_1.place(x=11, y=27, width=561, height=353) MergeNew.MergeNew(PageFrame_1, False) NoteBook_2.add(PageFrame_1, text="合并(Merge") PageFrame_2 = tkinter.ttk.Frame(NoteBook_2) PageFrame_2.place(x=11, y=27, width=561, height=353) DealPdf1.DealPdf1(PageFrame_2, False) NoteBook_2.add(PageFrame_2, text="拆分(split") #Inital all element's Data Fun.InitElementData(uiName)
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.Register(uiName, 'UIClass', self) self.root = root Fun.Register(uiName, 'root', root) style = Embedding_sty.SetupStyle() if isTKroot == True: root.title("Form1") Fun.CenterDlg(uiName, root, 629, 510) root['background'] = '#efefef' Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=629, height=510) Form_1.configure(bg="#efefef") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root Frame_2 = tkinter.Frame(root) Fun.Register(uiName, 'Frame_2', Frame_2) Frame_2.place(x=9, y=12, width=609, height=160) Frame_2.configure(bg="#ffffff") Frame_2.configure(relief="flat") Page1.Page1(Frame_2, False) NoteBook_3 = tkinter.ttk.Notebook(root) Fun.Register(uiName, 'NoteBook_3', NoteBook_3) NoteBook_3.place(x=10, y=188, width=606, height=312) PageFrame_1 = tkinter.ttk.Frame(NoteBook_3) PageFrame_1.place(x=15, y=213, width=596, height=282) TabPage1.TabPage1(PageFrame_1, False) NoteBook_3.add(PageFrame_1, text="TabPage1") PageFrame_2 = tkinter.ttk.Frame(NoteBook_3) PageFrame_2.place(x=15, y=213, width=596, height=282) TabPage2.TabPage2(PageFrame_2, False) NoteBook_3.add(PageFrame_2, text="TabPage2") #Inital all element's Data Fun.InitElementData(uiName)
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("500x400") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=500, height=400) Form_1.configure(bg="#efefef") Fun.AddElement(className, 'root', root) Fun.AddElement(className, 'Form_1', Form_1) #Create the elements of root Button_2 = tkinter.Button(root, text="调用注册", width=10, height=4) Button_2.place(x=190, y=139, width=100, height=28) Button_2.configure(command=lambda: CallTest_cmd.Button_2_onCommand( className, "Button_2")) Fun.AddElement(className, 'Button_2', Button_2) #Inital all element's Data Fun.InitElementData(className)
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.G_UIElementArray[uiName] = {} Fun.G_UIElementUserDataArray[uiName] = {} Fun.Register(uiName, 'UIClass', self) self.root = root style = LeftTreeBar_sty.SetupStyle() if isTKroot == True: root.title("Form1") root.wm_attributes("-topmost", 1) root.geometry("205x549") root.bind('<Configure>', self.Configure) Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=205, height=549) Form_1.configure(bg="#333333") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'root', root) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root TreeView_2 = tkinter.ttk.Treeview(root, show="tree") TreeView_2.place(x=0, y=0, width=205, height=549) TreeView_2.configure(selectmode="extended") TreeView_2.bind( "<Button-1>", Fun.EventFunction_Adaptor(LeftTreeBar_cmd.TreeView_2_onButton1, uiName=uiName, widgetName="TreeView_2")) Fun.Register(uiName, 'TreeView_2', TreeView_2) #Inital all element's Data Fun.InitElementData(uiName) #Add Some Logic Code Here: (Keep This Line of comments) root.bind('<Configure>', self.Configure)
def __init__(self,root): global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.G_UIElementArray['UIClass']=self self.root = root root.title("Form1") root.geometry("500x400") Form_1= tkinter.Canvas(root,width = 10,height = 4) Form_1.place(x = 0,y = 0,width = 500,height = 400) Form_1.configure(bg = "#efefef") Fun.G_UIElementArray['root']=root Fun.G_UIElementArray['Form_1']=Form_1 #Create the elements of root Fun.G_UIElementVariableArray['Entry_2']=tkinter.StringVar() Entry_2= tkinter.Entry(root,textvariable=Fun.G_UIElementVariableArray['Entry_2']) Entry_2.place(x = 80,y = 50,width = 301,height = 50) Entry_2.configure(relief = "sunken") Fun.G_UIElementArray['Entry_2']=Entry_2 Button_3= tkinter.Button(root,text="开始检测",width = 10,height = 4) Button_3.place(x = 400,y = 50,width = 100,height = 28) Fun.G_UIElementArray['Button_3']=Button_3 Button_4= tkinter.Button(root,text="结束检测",width = 10,height = 4) Button_4.place(x = 400,y = 100,width = 100,height = 28) Fun.G_UIElementArray['Button_4']=Button_4 Button_5= tkinter.Button(root,text="版本信息",width = 10,height = 4) Button_5.place(x = 400,y = 150,width = 100,height = 28) Fun.G_UIElementArray['Button_5']=Button_5 Label_6= tkinter.Label(root,text="web系统SQL注入漏洞检测系统",width = 10,height = 4) Label_6.place(x = 144,y = 19,width = 186,height = 20) Fun.G_UIElementArray['Label_6']=Label_6 Label_7= tkinter.Label(root,text="输入网址",width = 10,height = 4) Label_7.place(x = -24,y = 64,width = 100,height = 20) Fun.G_UIElementArray['Label_7']=Label_7 Label_8= tkinter.Label(root,text="状态",width = 10,height = 4) Label_8.place(x = -20,y = 310,width = 100,height = 20) Fun.G_UIElementArray['Label_8']=Label_8 Fun.G_UIElementVariableArray['Entry_9']=tkinter.StringVar() Entry_9= tkinter.Entry(root,textvariable=Fun.G_UIElementVariableArray['Entry_9']) Entry_9.place(x = 50,y = 250,width = 400,height = 130) Entry_9.configure(relief = "sunken") Fun.G_UIElementArray['Entry_9']=Entry_9 Label_10= tkinter.Label(root,text="输入线程数",width = 10,height = 4) Label_10.place(x = -18,y = 121,width = 100,height = 20) Fun.G_UIElementArray['Label_10']=Label_10 Fun.G_UIElementVariableArray['Entry_11']=tkinter.StringVar() Entry_11= tkinter.Entry(root,textvariable=Fun.G_UIElementVariableArray['Entry_11']) Entry_11.place(x = 80,y = 120,width = 120,height = 20) Entry_11.configure(relief = "sunken") Fun.G_UIElementArray['Entry_11']=Entry_11 Text_12= tkinter.Text(root) Text_12.place(x = 80,y = 156,width = 196,height = 86) Text_12.configure(relief = "sunken") Fun.G_UIElementArray['Text_12']=Text_12 Button_13= tkinter.Button(root,text="联系作者",width = 10,height = 4) Button_13.place(x = 400,y = 197,width = 100,height = 28) Fun.G_UIElementArray['Button_13']=Button_13 #Inital all element's Data Fun.InitElementData()
def __init__(self, root): global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.G_UIElementArray['UIClass'] = self self.root = root 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.G_UIElementArray['root'] = root Fun.G_UIElementArray['Form_1'] = Form_1 #Create the elements of root Fun.G_UIElementVariableArray['Entry_2'] = tkinter.StringVar() Entry_2 = tkinter.Entry( root, textvariable=Fun.G_UIElementVariableArray['Entry_2']) Entry_2.place(x=93, y=20, width=120, height=20) Entry_2.configure(bg="#ffffff") Entry_2.configure(relief="sunken") BoundingDataArray = [] BoundingDataArray.append(['IPAddr', 'string', '127.0.0.1', 1]) Fun.G_ElementBoundingDataArray.append(['Entry_2', BoundingDataArray]) Fun.G_UIElementArray['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.G_UIElementArray['Label_3'] = Label_3 Fun.G_UIElementVariableArray['Entry_4'] = tkinter.StringVar() Entry_4 = tkinter.Entry( root, textvariable=Fun.G_UIElementVariableArray['Entry_4']) Entry_4.place(x=294, y=19, width=120, height=20) Entry_4.configure(relief="sunken") BoundingDataArray = [] BoundingDataArray.append(['Port', 'int', '8888', 1]) Fun.G_ElementBoundingDataArray.append(['Entry_4', BoundingDataArray]) Fun.G_UIElementArray['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=Server_cmd.Button_5_onCommand) Fun.G_UIElementArray['Button_5'] = Button_5 ListBox_6 = tkinter.Listbox(root) ListBox_6.place(x=21, y=57, width=394, height=160) Fun.G_UIElementArray['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.G_UIElementArray['Label_7'] = Label_7 import MySocket MySocket_8 = MySocket.MySocket() #MySocket_8.xy(4,21) MySocket_8.set_HOST('127.0.0.1') MySocket_8.set_PORT('8888') MySocket_8.set_LISTBOX(ListBox_6) Fun.G_UIElementArray['MySocket_8'] = MySocket_8 #Inital all element's Data Fun.InitElementData()
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): global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.G_UIElementArray['UIClass'] = self self.root = root 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.G_UIElementArray['root'] = root Fun.G_UIElementArray['Form_1'] = Form_1 Fun.G_UIElementVariableArray['Group_3'] = tkinter.IntVar() Fun.G_UIElementVariableArray['Group_3'].set(0) #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.G_UIElementArray['Label_2'] = Label_2 Fun.G_UIElementVariableArray['ComboBox_3'] = tkinter.IntVar() ComboBox_3 = tkinter.ttk.Combobox( root, textvariable=Fun.G_UIElementVariableArray['ComboBox_3'], state="readonly") ComboBox_3.place(x=107, y=15, width=173, height=20) ComboBox_3.configure(state="readonly") Fun.G_UIElementArray['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.G_UIElementArray['Label_4'] = Label_4 Fun.G_UIElementVariableArray['Entry_5'] = tkinter.StringVar() Entry_5 = tkinter.Entry( root, textvariable=Fun.G_UIElementVariableArray['Entry_5']) Entry_5.place(x=107, y=56, width=172, height=20) Entry_5.configure(relief="sunken") Fun.G_UIElementArray['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=Express_Query_cmd.Button_6_onCommand) Fun.G_UIElementArray['Button_6'] = Button_6 ListBox_7 = tkinter.Listbox(root) ListBox_7.place(x=24, y=101, width=372, height=160) Fun.G_UIElementArray['ListBox_7'] = ListBox_7 import Express Express_8 = Express.Express() #Express_8.xy(24,101) Express_8.set_CompanyID('4') Express_8.set_ExpressNumber('0000001') Express_8.set_ComboBox(ComboBox_3) Fun.G_UIElementArray['Express_8'] = Express_8 #Inital all element's Data Fun.InitElementData()
def __init__(self, root): global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.G_UIElementArray['UIClass'] = self self.root = root root.title("Form1") root.geometry("480x320") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=480, height=320) Form_1.configure(bg="#efefef") Fun.G_UIElementArray['root'] = root Fun.G_UIElementArray['Form_1'] = Form_1 #Create the elements of root #Inital all element's Data Fun.InitElementData()
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.Register(uiName, 'UIClass', self) self.root = root Fun.Register(uiName, 'root', root) style = Project1_sty.SetupStyle() if isTKroot == True: root.title("Form1") Fun.CenterDlg(uiName, root, 640, 480) root['background'] = '#efefef' Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=640, height=480) Form_1.configure(bg="#efefef") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root #Inital all element's Data Fun.InitElementData(uiName)
def __init__(self,root,isTKroot = True): uiName = self.__class__.__name__ Fun.Register(uiName,'UIClass',self) self.root = root Fun.Register(uiName,'root',root) if isTKroot == True: root.title("Form1") root.geometry("565x295") Form_1= tkinter.Canvas(root,width = 10,height = 4) Form_1.place(x = 0,y = 0,width = 565,height = 295) Form_1.configure(bg = "#efefef") Fun.Register(uiName,'Form_1',Form_1) #Create the elements of root Canvas_2= tkinter.Canvas(root) Canvas_2.place(x = 10,y = 12,width = 548,height = 272) Canvas_2.configure(bg = "#ff0080") Fun.Register(uiName,'Canvas_2',Canvas_2) #Inital all element's Data Fun.InitElementData(uiName)
def __init__(self, root): global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.G_UIElementArray['UIClass'] = self self.root = root root.title("Form1") root.geometry("500x400") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=500, height=400) Form_1.configure(bg="#efefef") Fun.G_UIElementArray['root'] = root Fun.G_UIElementArray['Form_1'] = Form_1 #Create the elements of root Button_2 = tkinter.Button(root, text="调用注册", width=10, height=4) Button_2.place(x=190, y=139, width=100, height=28) Button_2.configure(command=CallTest_cmd.Button_2_onCommand) Fun.G_UIElementArray['Button_2'] = Button_2 #Inital all element's Data Fun.InitElementData()
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.Register(uiName, 'UIClass', self) self.root = root style = CallTest_sty.SetupStyle() if isTKroot == True: root.title("Form1") Fun.CenterDlg(uiName, root, 500, 400) root['background'] = '#efefef' Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=500, height=400) Form_1.configure(bg="#efefef") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'root', root) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root Button_2 = tkinter.Button(root, text="调用注册", width=10, height=4) Fun.Register(uiName, 'Button_2', Button_2) Button_2.place(x=190, y=139, width=100, height=28) Button_2.configure(command=lambda: CallTest_cmd.Button_2_onCommand( uiName, "Button_2")) #Inital all element's Data Fun.InitElementData(uiName)
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("565x295") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=565, height=295) Form_1.configure(bg="#efefef") Fun.AddElement(className, 'root', root) Fun.AddElement(className, 'Form_1', Form_1) #Create the elements of root Canvas_2 = tkinter.Canvas(root) Canvas_2.place(x=10, y=12, width=548, height=272) Canvas_2.configure(bg="#ff0080") Fun.AddElement(className, 'Canvas_2', Canvas_2) #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("216x215") Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=216, height=215) 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=10, y=10, width=190, height=30) Label_2.configure(bg="#808080") Label_2.configure(fg="#ffffff") Fun.AddUIData(className, 'Label_2', 'Count', 'float', 0.0, 1) Fun.AddUIData(className, 'Label_2', 'MidCount', 'float', 0.0, 0) Fun.AddUIData(className, 'Label_2', 'OpType', 'int', 0, 0) Fun.AddElement(className, 'Label_2', Label_2) Button_3 = tkinter.Button(root, text="1", width=10, height=4) Button_3.place(x=10, y=50, width=40, height=30) Button_3.configure(relief="groove") Button_3.configure( command=lambda: JSQ_cmd.Button_3_onCommand(className, "Button_3")) Fun.AddElement(className, 'Button_3', Button_3) Button_4 = tkinter.Button(root, text="2", width=10, height=4) Button_4.place(x=60, y=50, width=40, height=30) Button_4.configure(relief="groove") Button_4.configure( command=lambda: JSQ_cmd.Button_4_onCommand(className, "Button_4")) Fun.AddElement(className, 'Button_4', Button_4) Button_5 = tkinter.Button(root, text="3", width=10, height=4) Button_5.place(x=110, y=50, width=40, height=30) Button_5.configure(relief="groove") Button_5.configure( command=lambda: JSQ_cmd.Button_5_onCommand(className, "Button_5")) Fun.AddElement(className, 'Button_5', Button_5) Button_6 = tkinter.Button(root, text="4", width=10, height=4) Button_6.place(x=10, y=90, width=40, height=30) Button_6.configure(relief="groove") Button_6.configure( command=lambda: JSQ_cmd.Button_6_onCommand(className, "Button_6")) Fun.AddElement(className, 'Button_6', Button_6) Button_7 = tkinter.Button(root, text="5", width=10, height=4) Button_7.place(x=60, y=90, width=40, height=30) Button_7.configure(relief="groove") Button_7.configure( command=lambda: JSQ_cmd.Button_7_onCommand(className, "Button_7")) Fun.AddElement(className, 'Button_7', Button_7) Button_8 = tkinter.Button(root, text="6", width=10, height=4) Button_8.place(x=110, y=90, width=40, height=30) Button_8.configure(relief="groove") Button_8.configure( command=lambda: JSQ_cmd.Button_8_onCommand(className, "Button_8")) Fun.AddElement(className, 'Button_8', Button_8) Button_9 = tkinter.Button(root, text="7", width=10, height=4) Button_9.place(x=10, y=130, width=40, height=30) Button_9.configure(relief="groove") Button_9.configure( command=lambda: JSQ_cmd.Button_9_onCommand(className, "Button_9")) Fun.AddElement(className, 'Button_9', Button_9) Button_10 = tkinter.Button(root, text="8", width=10, height=4) Button_10.place(x=60, y=130, width=40, height=30) Button_10.configure(relief="groove") Button_10.configure(command=lambda: JSQ_cmd.Button_10_onCommand( className, "Button_10")) Fun.AddElement(className, 'Button_10', Button_10) Button_11 = tkinter.Button(root, text="9", width=10, height=4) Button_11.place(x=110, y=130, width=40, height=30) Button_11.configure(relief="groove") Button_11.configure(command=lambda: JSQ_cmd.Button_11_onCommand( className, "Button_11")) Fun.AddElement(className, 'Button_11', Button_11) Button_12 = tkinter.Button(root, text="0", width=10, height=4) Button_12.place(x=10, y=170, width=40, height=30) Button_12.configure(relief="groove") Button_12.configure(command=lambda: JSQ_cmd.Button_12_onCommand( className, "Button_12")) Fun.AddElement(className, 'Button_12', Button_12) Button_13 = tkinter.Button(root, text="C", width=10, height=4) Button_13.place(x=60, y=170, width=40, height=30) Button_13.configure(relief="groove") Button_13.configure(command=lambda: JSQ_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=110, y=169, width=40, height=30) Button_14.configure(relief="groove") Button_14.configure(command=lambda: JSQ_cmd.Button_14_onCommand( className, "Button_14")) Fun.AddElement(className, 'Button_14', Button_14) Button_15 = tkinter.Button(root, text="+", width=10, height=4) Button_15.place(x=160, y=50, width=40, height=30) Button_15.configure(relief="groove") Button_15.configure(command=lambda: JSQ_cmd.Button_15_onCommand( className, "Button_15")) Fun.AddElement(className, 'Button_15', Button_15) Button_16 = tkinter.Button(root, text="-", width=10, height=4) Button_16.place(x=160, y=90, width=40, height=30) Button_16.configure(relief="groove") Button_16.configure(command=lambda: JSQ_cmd.Button_16_onCommand( className, "Button_16")) Fun.AddElement(className, 'Button_16', Button_16) Button_17 = tkinter.Button(root, text="X", width=10, height=4) Button_17.place(x=160, y=130, width=40, height=30) Button_17.configure(relief="groove") Button_17.configure(command=lambda: JSQ_cmd.Button_17_onCommand( className, "Button_17")) Fun.AddElement(className, 'Button_17', Button_17) Button_18 = tkinter.Button(root, text="/", width=10, height=4) Button_18.place(x=160, y=170, width=40, height=30) Button_18.configure(relief="groove") Button_18.configure(command=lambda: JSQ_cmd.Button_18_onCommand( className, "Button_18")) Fun.AddElement(className, 'Button_18', Button_18) #Create the Menu of root MainMenu = tkinter.Menu(root) root.config(menu=MainMenu) A = tkinter.Menu(MainMenu, tearoff=0) A1 = tkinter.Menu(A, tearoff=0) A1.add_command(label="A11", command=lambda: JSQ_cmd.Menu_A11(className, "A11")) A.add_cascade(label="A1", menu=A1) MainMenu.add_cascade(label="A", menu=A) B = tkinter.Menu(MainMenu, tearoff=0) B.add_command(label="B2", command=lambda: JSQ_cmd.Menu_B2(className, "B2")) MainMenu.add_cascade(label="B", menu=B) #Inital all element's Data Fun.InitElementData(className)
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.Register(uiName, 'UIClass', self) self.root = root style = Express_Query_sty.SetupStyle() if isTKroot == True: root.title("Form1") Fun.CenterDlg(uiName, root, 432, 283) root['background'] = '#efefef' 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") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'root', root) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root Label_2 = tkinter.Label(root, text="快递公司", width=10, height=4) Fun.Register(uiName, 'Label_2', Label_2) Label_2.place(x=11, y=15, width=75, height=20) Label_2.configure(relief="flat") ComboBox_3_Variable = Fun.AddTKVariable(uiName, 'ComboBox_3') ComboBox_3 = tkinter.ttk.Combobox(root, textvariable=ComboBox_3_Variable, state="readonly") Fun.Register(uiName, 'ComboBox_3', ComboBox_3) ComboBox_3.place(x=107, y=15, width=173, height=20) ComboBox_3.configure(state="readonly") Label_4 = tkinter.Label(root, text="快递单号", width=10, height=4) Fun.Register(uiName, 'Label_4', Label_4) Label_4.place(x=11, y=55, width=75, height=20) Label_4.configure(relief="flat") Entry_5_Variable = Fun.AddTKVariable(uiName, 'Entry_5', '') Entry_5 = tkinter.Entry(root, textvariable=Entry_5_Variable) Fun.Register(uiName, 'Entry_5', Entry_5) Entry_5.place(x=107, y=56, width=172, height=20) Entry_5.configure(relief="sunken") Button_6 = tkinter.Button(root, text="查询", width=10, height=4) Fun.Register(uiName, 'Button_6', Button_6) Button_6.place(x=297, y=53, width=100, height=28) Button_6.configure(command=lambda: Express_Query_cmd. Button_6_onCommand(uiName, "Button_6")) ListBox_7 = tkinter.Listbox(root) Fun.Register(uiName, 'ListBox_7', ListBox_7) ListBox_7.place(x=24, y=101, width=372, height=160) import Express Express_9 = Express.Express() #Express_9.xy(151,69) Express_9.set_CompanyID('4') Express_9.set_ExpressNumber('0000001') Express_9.set_ComboBox(ComboBox_3) Fun.Register(uiName, 'Express_9', Express_9) CheckButton_10_Variable = Fun.AddTKVariable(uiName, 'CheckButton_10') CheckButton_10_Variable.set(False) CheckButton_10 = tkinter.Checkbutton(root, variable=CheckButton_10_Variable, text="多线程查询", anchor=tkinter.W) Fun.Register(uiName, 'CheckButton_10', CheckButton_10) CheckButton_10.place(x=302, y=20, width=100, height=20) #Inital all element's Data Fun.InitElementData(uiName)
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): global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.G_UIElementArray['UIClass'] = self self.root = root 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.G_UIElementArray['root'] = root Fun.G_UIElementArray['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.G_UIElementArray['Label_2'] = Label_2 Fun.G_UIElementVariableArray['Entry_3'] = tkinter.StringVar() Entry_3 = tkinter.Entry( root, textvariable=Fun.G_UIElementVariableArray['Entry_3']) Entry_3.place(x=99, y=15, width=120, height=20) Entry_3.configure(relief="sunken") BoundingDataArray = [] BoundingDataArray.append(['IPAddr', 'string', '127.0.0.1', 1]) Fun.G_ElementBoundingDataArray.append(['Entry_3', BoundingDataArray]) Fun.G_UIElementArray['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.G_UIElementArray['Label_4'] = Label_4 Fun.G_UIElementVariableArray['Entry_5'] = tkinter.StringVar() Entry_5 = tkinter.Entry( root, textvariable=Fun.G_UIElementVariableArray['Entry_5']) Entry_5.place(x=315, y=13, width=120, height=20) Entry_5.configure(relief="sunken") BoundingDataArray = [] BoundingDataArray.append(['Port', 'int', '8888', 1]) Fun.G_ElementBoundingDataArray.append(['Entry_5', BoundingDataArray]) Fun.G_UIElementArray['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.G_UIElementArray['Label_6'] = Label_6 Fun.G_UIElementVariableArray['Entry_7'] = tkinter.StringVar() Entry_7 = tkinter.Entry( root, textvariable=Fun.G_UIElementVariableArray['Entry_7']) Entry_7.place(x=99, y=49, width=335, height=20) Entry_7.configure(relief="sunken") BoundingDataArray = [] BoundingDataArray.append(['Msg', 'string', '', 1]) Fun.G_ElementBoundingDataArray.append(['Entry_7', BoundingDataArray]) Fun.G_UIElementArray['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=Client_cmd.Button_8_onCommand) Fun.G_UIElementArray['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=Client_cmd.Button_9_onCommand) Fun.G_UIElementArray['Button_9'] = Button_9 ListBox_10 = tkinter.Listbox(root) ListBox_10.place(x=21, y=87, width=528, height=197) Fun.G_UIElementArray['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.G_UIElementArray['MySocket_11'] = MySocket_11 #Inital all element's Data Fun.InitElementData()
def __init__(self,root): global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.G_UIElementArray['UIClass']=self self.root = root root.title("Form1") root.geometry("216x215") Form_1= tkinter.Canvas(root,width = 10,height = 4) Form_1.place(x = 0,y = 0,width = 216,height = 215) Form_1.configure(bg = "#efefef") Fun.G_UIElementArray['root']=root Fun.G_UIElementArray['Form_1']=Form_1 #Create the elements of root Label_2= tkinter.Label(root,text="",width = 10,height = 4) Label_2.place(x = 10,y = 10,width = 190,height = 30) Label_2.configure(bg = "#808080") Label_2.configure(fg = "#ffffff") BoundingDataArray=[] BoundingDataArray.append(['Count','float','0.0',1]) Fun.G_ElementBoundingDataArray.append(['Label_2',BoundingDataArray]) Fun.G_UIElementArray['Label_2']=Label_2 Button_3= tkinter.Button(root,text="1",width = 10,height = 4) Button_3.place(x = 10,y = 50,width = 40,height = 30) Button_3.configure(relief = "groove") Button_3.configure(command=JSQ_cmd.Button_3_onCommand) Fun.G_UIElementArray['Button_3']=Button_3 Button_4= tkinter.Button(root,text="2",width = 10,height = 4) Button_4.place(x = 60,y = 50,width = 40,height = 30) Button_4.configure(relief = "groove") Button_4.configure(command=JSQ_cmd.Button_4_onCommand) Fun.G_UIElementArray['Button_4']=Button_4 Button_5= tkinter.Button(root,text="3",width = 10,height = 4) Button_5.place(x = 110,y = 50,width = 40,height = 30) Button_5.configure(relief = "groove") Button_5.configure(command=JSQ_cmd.Button_5_onCommand) Fun.G_UIElementArray['Button_5']=Button_5 Button_6= tkinter.Button(root,text="4",width = 10,height = 4) Button_6.place(x = 10,y = 90,width = 40,height = 30) Button_6.configure(relief = "groove") Button_6.configure(command=JSQ_cmd.Button_6_onCommand) Fun.G_UIElementArray['Button_6']=Button_6 Button_7= tkinter.Button(root,text="5",width = 10,height = 4) Button_7.place(x = 60,y = 90,width = 40,height = 30) Button_7.configure(relief = "groove") Button_7.configure(command=JSQ_cmd.Button_7_onCommand) Fun.G_UIElementArray['Button_7']=Button_7 Button_8= tkinter.Button(root,text="6",width = 10,height = 4) Button_8.place(x = 110,y = 90,width = 40,height = 30) Button_8.configure(relief = "groove") Button_8.configure(command=JSQ_cmd.Button_8_onCommand) Fun.G_UIElementArray['Button_8']=Button_8 Button_9= tkinter.Button(root,text="7",width = 10,height = 4) Button_9.place(x = 10,y = 130,width = 40,height = 30) Button_9.configure(relief = "groove") Button_9.configure(command=JSQ_cmd.Button_9_onCommand) Fun.G_UIElementArray['Button_9']=Button_9 Button_10= tkinter.Button(root,text="8",width = 10,height = 4) Button_10.place(x = 60,y = 130,width = 40,height = 30) Button_10.configure(relief = "groove") Button_10.configure(command=JSQ_cmd.Button_10_onCommand) Fun.G_UIElementArray['Button_10']=Button_10 Button_11= tkinter.Button(root,text="9",width = 10,height = 4) Button_11.place(x = 110,y = 130,width = 40,height = 30) Button_11.configure(relief = "groove") Button_11.configure(command=JSQ_cmd.Button_11_onCommand) Fun.G_UIElementArray['Button_11']=Button_11 Button_12= tkinter.Button(root,text="0",width = 10,height = 4) Button_12.place(x = 10,y = 170,width = 40,height = 30) Button_12.configure(relief = "groove") Button_12.configure(command=JSQ_cmd.Button_12_onCommand) Fun.G_UIElementArray['Button_12']=Button_12 Button_13= tkinter.Button(root,text="C",width = 10,height = 4) Button_13.place(x = 60,y = 170,width = 40,height = 30) Button_13.configure(relief = "groove") Button_13.configure(command=JSQ_cmd.Button_13_onCommand) Fun.G_UIElementArray['Button_13']=Button_13 Button_14= tkinter.Button(root,text="=",width = 10,height = 4) Button_14.place(x = 110,y = 169,width = 40,height = 30) Button_14.configure(relief = "groove") Button_14.configure(command=JSQ_cmd.Button_14_onCommand) Fun.G_UIElementArray['Button_14']=Button_14 Button_15= tkinter.Button(root,text="+",width = 10,height = 4) Button_15.place(x = 160,y = 50,width = 40,height = 30) Button_15.configure(relief = "groove") Button_15.configure(command=JSQ_cmd.Button_15_onCommand) Fun.G_UIElementArray['Button_15']=Button_15 Button_16= tkinter.Button(root,text="-",width = 10,height = 4) Button_16.place(x = 160,y = 90,width = 40,height = 30) Button_16.configure(relief = "groove") Button_16.configure(command=JSQ_cmd.Button_16_onCommand) Fun.G_UIElementArray['Button_16']=Button_16 Button_17= tkinter.Button(root,text="X",width = 10,height = 4) Button_17.place(x = 160,y = 130,width = 40,height = 30) Button_17.configure(relief = "groove") Button_17.configure(command=JSQ_cmd.Button_17_onCommand) Fun.G_UIElementArray['Button_17']=Button_17 Button_18= tkinter.Button(root,text="/",width = 10,height = 4) Button_18.place(x = 160,y = 170,width = 40,height = 30) Button_18.configure(relief = "groove") Button_18.configure(command=JSQ_cmd.Button_18_onCommand) Fun.G_UIElementArray['Button_18']=Button_18 #Create the Menu of root MainMenu=tkinter.Menu(root) root.config(menu = MainMenu) A=tkinter.Menu(MainMenu,tearoff = 0) A1=tkinter.Menu(A,tearoff = 0) A1.add_command(label="A11",command=JSQ_cmd.Menu_A11) A.add_cascade(label="A1",menu=A1) MainMenu.add_cascade(label="A",menu=A) B=tkinter.Menu(MainMenu,tearoff = 0) B.add_command(label="B2",command=JSQ_cmd.Menu_B2) MainMenu.add_cascade(label="B",menu=B) #Inital all element's Data Fun.InitElementData()
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.Register(uiName, 'UIClass', self) self.root = root Fun.Register(uiName, '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.Register(uiName, 'Form_1', Form_1) Group_1_Variable = Fun.AddTKVariable(uiName, '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.Register(uiName, 'Label_2', Label_2) Entry_3_Variable = Fun.AddTKVariable(uiName, '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.Register(uiName, '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.Register(uiName, '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.Register(uiName, 'RadioButton_5', RadioButton_5, None, 'Group_1') 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.Register(uiName, 'RadioButton_6', RadioButton_6, None, 'Group_1') Label_7 = tkinter.Label(root, text="年龄", width=10, height=4) Label_7.place(x=18, y=78, width=82, height=20) Fun.Register(uiName, 'Label_7', Label_7) Entry_8_Variable = Fun.AddTKVariable(uiName, '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.Register(uiName, '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.Register(uiName, 'Label_9', Label_9) ComboBox_10_Variable = Fun.AddTKVariable(uiName, '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.Register(uiName, '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(uiName, "Button_11")) Fun.Register(uiName, 'Button_11', Button_11) #Inital all element's Data Fun.InitElementData(uiName)
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.Register(uiName, 'UIClass', self) self.root = root style = DealPdf1_sty.SetupStyle() if isTKroot == True: root.title("Form1") Fun.CenterDlg(uiName, root, 563, 375) root['background'] = '#efefef' Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=563, height=375) Form_1.configure(bg="#efefef") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'root', root) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root Button_3 = tkinter.Button(root, text="选择文件:", width=10, height=4) Fun.Register(uiName, 'Button_3', Button_3) Button_3.place(x=16, y=14, width=105, height=38) Button_3.configure(command=lambda: DealPdf1_cmd.Button_3_onCommand( uiName, "Button_3")) Button_3_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Button_3.configure(font=Button_3_Ft) Entry_4_Variable = Fun.AddTKVariable(uiName, 'Entry_4', '') Entry_4 = tkinter.Entry(root, textvariable=Entry_4_Variable) Fun.Register(uiName, 'Entry_4', Entry_4) Entry_4.place(x=124, y=14, width=426, height=38) Entry_4.configure(relief="sunken") Label_5 = tkinter.Label(root, text="总页数", width=10, height=4) Fun.Register(uiName, 'Label_5', Label_5) Label_5.place(x=17, y=61, width=100, height=30) Label_5.configure(relief="flat") Label_5_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Label_5.configure(font=Label_5_Ft) Entry_6_Variable = Fun.AddTKVariable(uiName, 'Entry_6', '') Entry_6 = tkinter.Entry(root, textvariable=Entry_6_Variable) Fun.Register(uiName, 'Entry_6', Entry_6) Entry_6.place(x=125, y=56, width=120, height=35) Entry_6.configure(relief="sunken") Entry_6.configure(state="disabled") Label_7 = tkinter.Label(root, text="拆分格式如下,请按照格式填写!将按照输入的页数分隔文件!", width=10, height=4) Fun.Register(uiName, 'Label_7', Label_7) Label_7.place(x=19, y=103, width=481, height=31) Label_7.configure(relief="flat") Label_7_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Label_7.configure(font=Label_7_Ft) Entry_8_Variable = Fun.AddTKVariable(uiName, 'Entry_8', '') Entry_8 = tkinter.Entry(root, textvariable=Entry_8_Variable) Fun.Register(uiName, 'Entry_8', Entry_8) Entry_8.place(x=16, y=141, width=366, height=38) Entry_8.configure(relief="sunken") Button_12 = tkinter.Button(root, text="拆分", width=10, height=4) Fun.Register(uiName, 'Button_12', Button_12) Button_12.place(x=386, y=141, width=163, height=38) Button_12.configure(command=lambda: DealPdf1_cmd.Button_12_onCommand( uiName, "Button_12")) Button_12_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Button_12.configure(font=Button_12_Ft) ListBox_13 = tkinter.Listbox(root) Fun.Register(uiName, 'ListBox_13', ListBox_13) ListBox_13.place(x=15, y=233, width=530, height=120) Label_14 = tkinter.Label(root, text="拆分进度:", width=10, height=4) Fun.Register(uiName, 'Label_14', Label_14) Label_14.place(x=16, y=203, width=85, height=28) Label_14.configure(relief="flat") Label_14_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Label_14.configure(font=Label_14_Ft) #Inital all element's Data Fun.InitElementData(uiName) #Call Form_1's OnLoad Function DealPdf1_cmd.Form_1_onLoad(uiName)
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.Register(uiName, 'UIClass', self) self.root = root style = Chat_sty.SetupStyle() if isTKroot == True: root.title("Form1") Fun.CenterDlg(uiName, root, 688, 384) root['background'] = '#efefef' Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=688, height=384) Form_1.configure(bg="#efefef") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'root', root) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root Label_2 = tkinter.Label(root, text="ip", width=10, height=4) Fun.Register(uiName, 'Label_2', Label_2) Label_2.place(x=14, y=23, width=27, height=23) Label_2.configure(relief="flat") Label_2_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Label_2.configure(font=Label_2_Ft) Entry_3_Variable = Fun.AddTKVariable(uiName, 'Entry_3', '') Entry_3 = tkinter.Entry(root, textvariable=Entry_3_Variable) Fun.Register(uiName, 'Entry_3', Entry_3) Entry_3.place(x=45, y=16, width=160, height=33) Entry_3.configure(relief="sunken") Entry_3.configure(state="disabled") Label_4 = tkinter.Label(root, text="端口", width=10, height=4) Fun.Register(uiName, 'Label_4', Label_4) Label_4.place(x=211, y=25, width=45, height=23) Label_4.configure(relief="flat") Label_4_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Label_4.configure(font=Label_4_Ft) Entry_5_Variable = Fun.AddTKVariable(uiName, 'Entry_5', '') Entry_5 = tkinter.Entry(root, textvariable=Entry_5_Variable) Fun.Register(uiName, 'Entry_5', Entry_5) Entry_5.place(x=269, y=17, width=160, height=33) Entry_5.configure(relief="sunken") Button_6 = tkinter.Button(root, text="启动服务器", width=10, height=4) Fun.Register(uiName, 'Button_6', Button_6) Button_6.place(x=435, y=15, width=120, height=37) Button_6.configure( command=lambda: Chat_cmd.Button_6_onCommand(uiName, "Button_6")) Button_6_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Button_6.configure(font=Button_6_Ft) Button_7 = tkinter.Button(root, text="关闭服务器", width=10, height=4) Fun.Register(uiName, 'Button_7', Button_7) Button_7.place(x=558, y=15, width=120, height=37) Button_7.configure( command=lambda: Chat_cmd.Button_7_onCommand(uiName, "Button_7")) Button_7_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Button_7.configure(font=Button_7_Ft) ListBox_8 = tkinter.Listbox(root) Fun.Register(uiName, 'ListBox_8', ListBox_8) ListBox_8.place(x=11, y=55, width=666, height=127) ListBox_9 = tkinter.Listbox(root) Fun.Register(uiName, 'ListBox_9', ListBox_9) ListBox_9.place(x=11, y=226, width=666, height=106) Entry_10_Variable = Fun.AddTKVariable(uiName, 'Entry_10', '') Entry_10 = tkinter.Entry(root, textvariable=Entry_10_Variable) Fun.Register(uiName, 'Entry_10', Entry_10) Entry_10.place(x=11, y=337, width=492, height=39) Entry_10.configure(relief="sunken") Button_11 = tkinter.Button(root, text="连接服务器", width=10, height=4) Fun.Register(uiName, 'Button_11', Button_11) Button_11.place(x=280, y=188, width=120, height=37) Button_11.configure( command=lambda: Chat_cmd.Button_11_onCommand(uiName, "Button_11")) Button_11_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Button_11.configure(font=Button_11_Ft) Label_12 = tkinter.Label(root, text="客户端:[服务器端口同上]", width=10, height=4) Fun.Register(uiName, 'Label_12', Label_12) Label_12.place(x=9, y=193, width=249, height=31) Label_12.configure(relief="flat") Label_12_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Label_12.configure(font=Label_12_Ft) Button_13 = tkinter.Button(root, text="发送消息", width=10, height=4) Fun.Register(uiName, 'Button_13', Button_13) Button_13.place(x=504, y=336, width=173, height=39) Button_13.configure( command=lambda: Chat_cmd.Button_13_onCommand(uiName, "Button_13")) Button_13_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Button_13.configure(font=Button_13_Ft) #Inital all element's Data Fun.InitElementData(uiName)
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.Register(uiName, 'UIClass', self) self.root = root style = JSQ_sty.SetupStyle() if isTKroot == True: root.title("Form1") Fun.CenterDlg(uiName, root, 222, 237) root['background'] = '#efefef' Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=222, height=237) Form_1.configure(bg="#efefef") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'root', root) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root Label_2 = tkinter.Label(root, text="", width=10, height=4) Fun.Register(uiName, 'Label_2', Label_2) Label_2.place(x=12, y=13, width=190, height=30) Label_2.configure(bg="#808080") Label_2.configure(fg="#ffffff") Label_2.configure(relief="flat") Fun.AddUserData(uiName, 'Label_2', 'Count', 'float', 0.0, 1) Fun.AddUserData(uiName, 'Label_2', 'MidCount', 'float', 0.0, 0) Fun.AddUserData(uiName, 'Label_2', 'OpType', 'int', 0, 0) Button_3 = tkinter.Button(root, text="1", width=10, height=4) Fun.Register(uiName, 'Button_3', Button_3) Button_3.place(x=10, y=50, width=40, height=30) Button_3.configure(relief="groove") Button_3.configure( command=lambda: JSQ_cmd.Button_3_onCommand(uiName, "Button_3")) Button_4 = tkinter.Button(root, text="2", width=10, height=4) Fun.Register(uiName, 'Button_4', Button_4) Button_4.place(x=60, y=50, width=40, height=30) Button_4.configure(relief="groove") Button_4.configure( command=lambda: JSQ_cmd.Button_4_onCommand(uiName, "Button_4")) Button_5 = tkinter.Button(root, text="3", width=10, height=4) Fun.Register(uiName, 'Button_5', Button_5) Button_5.place(x=110, y=50, width=40, height=30) Button_5.configure(relief="groove") Button_5.configure( command=lambda: JSQ_cmd.Button_5_onCommand(uiName, "Button_5")) Button_6 = tkinter.Button(root, text="4", width=10, height=4) Fun.Register(uiName, 'Button_6', Button_6) Button_6.place(x=10, y=90, width=40, height=30) Button_6.configure(relief="groove") Button_6.configure( command=lambda: JSQ_cmd.Button_6_onCommand(uiName, "Button_6")) Button_7 = tkinter.Button(root, text="5", width=10, height=4) Fun.Register(uiName, 'Button_7', Button_7) Button_7.place(x=60, y=90, width=40, height=30) Button_7.configure(relief="groove") Button_7.configure( command=lambda: JSQ_cmd.Button_7_onCommand(uiName, "Button_7")) Button_8 = tkinter.Button(root, text="6", width=10, height=4) Fun.Register(uiName, 'Button_8', Button_8) Button_8.place(x=110, y=90, width=40, height=30) Button_8.configure(relief="groove") Button_8.configure( command=lambda: JSQ_cmd.Button_8_onCommand(uiName, "Button_8")) Button_9 = tkinter.Button(root, text="7", width=10, height=4) Fun.Register(uiName, 'Button_9', Button_9) Button_9.place(x=10, y=130, width=40, height=30) Button_9.configure(relief="groove") Button_9.configure( command=lambda: JSQ_cmd.Button_9_onCommand(uiName, "Button_9")) Button_10 = tkinter.Button(root, text="8", width=10, height=4) Fun.Register(uiName, 'Button_10', Button_10) Button_10.place(x=60, y=130, width=40, height=30) Button_10.configure(relief="groove") Button_10.configure( command=lambda: JSQ_cmd.Button_10_onCommand(uiName, "Button_10")) Button_11 = tkinter.Button(root, text="9", width=10, height=4) Fun.Register(uiName, 'Button_11', Button_11) Button_11.place(x=110, y=130, width=40, height=30) Button_11.configure(relief="groove") Button_11.configure( command=lambda: JSQ_cmd.Button_11_onCommand(uiName, "Button_11")) Button_12 = tkinter.Button(root, text="0", width=10, height=4) Fun.Register(uiName, 'Button_12', Button_12) Button_12.place(x=10, y=170, width=40, height=30) Button_12.configure(relief="groove") Button_12.configure( command=lambda: JSQ_cmd.Button_12_onCommand(uiName, "Button_12")) Button_13 = tkinter.Button(root, text="C", width=10, height=4) Fun.Register(uiName, 'Button_13', Button_13) Button_13.place(x=60, y=170, width=40, height=30) Button_13.configure(relief="groove") Button_13.configure( command=lambda: JSQ_cmd.Button_13_onCommand(uiName, "Button_13")) Button_14 = tkinter.Button(root, text="=", width=10, height=4) Fun.Register(uiName, 'Button_14', Button_14) Button_14.place(x=110, y=169, width=40, height=30) Button_14.configure(relief="groove") Button_14.configure( command=lambda: JSQ_cmd.Button_14_onCommand(uiName, "Button_14")) Button_15 = tkinter.Button(root, text="+", width=10, height=4) Fun.Register(uiName, 'Button_15', Button_15) Button_15.place(x=160, y=50, width=40, height=30) Button_15.configure(relief="groove") Button_15.configure( command=lambda: JSQ_cmd.Button_15_onCommand(uiName, "Button_15")) Button_16 = tkinter.Button(root, text="-", width=10, height=4) Fun.Register(uiName, 'Button_16', Button_16) Button_16.place(x=160, y=90, width=40, height=30) Button_16.configure(relief="groove") Button_16.configure( command=lambda: JSQ_cmd.Button_16_onCommand(uiName, "Button_16")) Button_17 = tkinter.Button(root, text="X", width=10, height=4) Fun.Register(uiName, 'Button_17', Button_17) Button_17.place(x=160, y=130, width=40, height=30) Button_17.configure(relief="groove") Button_17.configure( command=lambda: JSQ_cmd.Button_17_onCommand(uiName, "Button_17")) Button_18 = tkinter.Button(root, text="/", width=10, height=4) Fun.Register(uiName, 'Button_18', Button_18) Button_18.place(x=160, y=170, width=40, height=30) Button_18.configure(relief="groove") Button_18.configure( command=lambda: JSQ_cmd.Button_18_onCommand(uiName, "Button_18")) #Create the Menu of root MainMenu = tkinter.Menu(root) root.config(menu=MainMenu) A = tkinter.Menu(MainMenu, tearoff=0) A1 = tkinter.Menu(A, tearoff=0) A1.add_command(label="A11", command=lambda: JSQ_cmd.Menu_A11(uiName, "A11")) A.add_cascade(label="A1", menu=A1) MainMenu.add_cascade(label="A", menu=A) B = tkinter.Menu(MainMenu, tearoff=0) B.add_command(label="B3", command=lambda: JSQ_cmd.Menu_B3(uiName, "B3")) B.add_command(label="B2", command=lambda: JSQ_cmd.Menu_B2(uiName, "B2")) MainMenu.add_cascade(label="B", menu=B) #Inital all element's Data Fun.InitElementData(uiName)
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.Register(uiName, 'UIClass', self) self.root = root style = GirlImages_sty.SetupStyle() if isTKroot == True: root.title("Form1") Fun.CenterDlg(uiName, root, 820, 660) root['background'] = '#efefef' root.bind('<Configure>', self.Configure) Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=820, height=660) Form_1.configure(bg="#efefef") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'root', root) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root Label_2 = tkinter.Label(root, text="网址", width=10, height=4) Fun.Register(uiName, 'Label_2', Label_2) Label_2.place(x=10, y=2, width=50, height=24) Label_2.configure(relief="flat") Entry_3_Variable = Fun.AddTKVariable(uiName, 'Entry_3', '') Entry_3 = tkinter.Entry(root, textvariable=Entry_3_Variable) Fun.Register(uiName, 'Entry_3', Entry_3) Entry_3.place(x=60, y=2, width=500, height=24) Entry_3.configure(relief="sunken") Label_4 = tkinter.Label(root, text="最大数量", width=10, height=4) Fun.Register(uiName, 'Label_4', Label_4) Label_4.place(x=560, y=2, width=60, height=24) Label_4.configure(relief="flat") Entry_5_Variable = Fun.AddTKVariable(uiName, 'Entry_5', '') Entry_5 = tkinter.Entry(root, textvariable=Entry_5_Variable) Fun.Register(uiName, 'Entry_5', Entry_5) Entry_5.place(x=620, y=2, width=70, height=24) Entry_5.configure(relief="sunken") Button_6 = tkinter.Button(root, text="开始", width=10, height=4) Fun.Register(uiName, 'Button_6', Button_6) Button_6.place(x=710, y=2, width=50, height=24) Button_6.configure(command=lambda: GirlImages_cmd.Button_6_onCommand( uiName, "Button_6")) Button_7 = tkinter.Button(root, text="停止", width=10, height=4) Fun.Register(uiName, 'Button_7', Button_7) Button_7.place(x=770, y=2, width=50, height=24) Button_7.configure(command=lambda: GirlImages_cmd.Button_7_onCommand( uiName, "Button_7")) PanedWindow_8 = tkinter.PanedWindow(root) Fun.Register(uiName, 'PanedWindow_8', PanedWindow_8) PanedWindow_8.place(x=0, y=30, width=871, height=610) PanedWindow_8.configure(orient=tkinter.HORIZONTAL) PanedWindow_8.configure(showhandle="0") PanedWindow_8.configure(sashrelief="flat") PanedWindow_8.configure(sashwidth="4") PanedWindow_8_child1 = tkinter.Canvas(PanedWindow_8, bg="#FFDD94", name="child1") PanedWindow_8_child1.place(x=1, y=1, width=261, height=608) LeftTreeBar.LeftTreeBar(PanedWindow_8_child1, False) PanedWindow_8.add(PanedWindow_8_child1, width=261) PanedWindow_8_child2 = tkinter.Canvas(PanedWindow_8, bg="#D0E6A5", name="child2") Fun.Register(uiName, 'PanedWindow_8_child1', PanedWindow_8_child1) Fun.Register(uiName, 'PanedWindow_8_child2', PanedWindow_8_child2) PanedWindow_8_child2.place(x=266, y=1, width=604, height=608) RightTextBar.RightTextBar(PanedWindow_8_child2, False) PanedWindow_8.add(PanedWindow_8_child2, width=604) Fun.Register(uiName, 'PanedWindow_8_child1', PanedWindow_8_child1) Fun.Register(uiName, 'PanedWindow_8_child2', PanedWindow_8_child2) Label_9 = tkinter.Label(root, text="Label", width=10, height=4) Fun.Register(uiName, 'Label_9', Label_9) Label_9.place(x=0, y=640, width=820, height=20) Label_9.configure(relief="flat") #Inital all element's Data Fun.InitElementData(uiName) #Call Form_1's OnLoad Function GirlImages_cmd.Form_1_onLoad(uiName)
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.G_UIElementArray[uiName] = {} Fun.G_UIElementUserDataArray[uiName] = {} global ElementBGArray global ElementBGArray_Resize global ElementBGArray_IM Fun.Register(uiName, '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.Register(uiName, 'root', root) Fun.Register(uiName, 'Form_1', Form_1) Group_1_Variable = Fun.AddTKVariable(uiName, '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=50, y=0, width=100, height=100) ElementBGArray[2] = Image.open("ico.png") ElementBGArray_Resize[2] = ElementBGArray[2].resize((100, 100), 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.Register(uiName, 'Label_2', Label_2) Label_3 = tkinter.Label(root, text="注册信息", width=10, height=4) Label_3.place(x=150, y=34, width=206, 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.Register(uiName, '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.Register(uiName, 'Label_4', Label_4) Entry_5_Variable = Fun.AddTKVariable(uiName, '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.Register(uiName, '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.Register(uiName, '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.Register(uiName, '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.Register(uiName, '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.Register(uiName, 'Label_9', Label_9) Entry_10_Variable = Fun.AddTKVariable(uiName, '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.Register(uiName, '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.Register(uiName, '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.Register(uiName, '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( uiName, "Button_13")) Fun.Register(uiName, '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( uiName, "Button_14")) Fun.Register(uiName, 'Button_14', Button_14) #Inital all element's Data Fun.InitElementData(uiName)
def __init__(self, root, isTKroot=True): uiName = self.__class__.__name__ Fun.G_UIElementArray[uiName] = {} Fun.G_UIElementUserDataArray[uiName] = {} Fun.Register(uiName, 'UIClass', self) self.root = root style = Merge_sty.SetupStyle() if isTKroot == True: root.title("Form1") Fun.CenterDlg(None, root, 563, 375) Form_1 = tkinter.Canvas(root, width=10, height=4) Form_1.place(x=0, y=0, width=563, height=375) Form_1.configure(bg="#efefef") Form_1.configure(highlightthickness=0) Fun.Register(uiName, 'root', root) Fun.Register(uiName, 'Form_1', Form_1) #Create the elements of root Button_3 = tkinter.Button(root, text="选择文件1", width=10, height=4) Button_3.place(x=20, y=39, width=153, height=46) Button_3.configure( command=lambda: Merge_cmd.Button_3_onCommand(uiName, "Button_3")) Button_3_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Button_3.configure(font=Button_3_Ft) Fun.Register(uiName, 'Button_3', Button_3) Entry_4_Variable = Fun.AddTKVariable(uiName, 'Entry_4', '') Entry_4 = tkinter.Entry(root, textvariable=Entry_4_Variable) Entry_4.place(x=174, y=43, width=364, height=42) Entry_4.configure(relief="sunken") Fun.Register(uiName, 'Entry_4', Entry_4) Button_5 = tkinter.Button(root, text="选择文件2", width=10, height=4) Button_5.place(x=20, y=88, width=153, height=44) Button_5.configure( command=lambda: Merge_cmd.Button_5_onCommand(uiName, "Button_5")) Button_5_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Button_5.configure(font=Button_5_Ft) Fun.Register(uiName, 'Button_5', Button_5) Entry_6_Variable = Fun.AddTKVariable(uiName, 'Entry_6', '') Entry_6 = tkinter.Entry(root, textvariable=Entry_6_Variable) Entry_6.place(x=174, y=90, width=363, height=41) Entry_6.configure(relief="sunken") Fun.Register(uiName, 'Entry_6', Entry_6) Button_7 = tkinter.Button(root, text="合并以上两个文件", width=10, height=4) Button_7.place(x=171, y=151, width=230, height=46) Button_7.configure( command=lambda: Merge_cmd.Button_7_onCommand(uiName, "Button_7")) Button_7_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Button_7.configure(font=Button_7_Ft) Fun.Register(uiName, 'Button_7', Button_7) Label_8 = tkinter.Label(root, text="选择文件合并:", width=10, height=4) Label_8.place(x=20, y=7, width=181, height=30) Label_8.configure(relief="flat") Label_8_Ft = tkinter.font.Font(family='System', size=20, weight='bold', slant='roman', underline=0, overstrike=0) Label_8.configure(font=Label_8_Ft) Fun.Register(uiName, 'Label_8', Label_8) Label_9 = tkinter.Label(root, text="按照文件夹合并", width=10, height=4) Label_9.place(x=20, y=213, width=195, height=40) Label_9.configure(relief="flat") Label_9_Ft = tkinter.font.Font(family='System', size=20, weight='bold', slant='roman', underline=0, overstrike=0) Label_9.configure(font=Label_9_Ft) Fun.Register(uiName, 'Label_9', Label_9) Button_10 = tkinter.Button(root, text="选择文件夹:", width=10, height=4) Button_10.place(x=19, y=253, width=153, height=46) Button_10.configure( command=lambda: Merge_cmd.Button_10_onCommand(uiName, "Button_10")) Button_10_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Button_10.configure(font=Button_10_Ft) Fun.Register(uiName, 'Button_10', Button_10) Entry_11_Variable = Fun.AddTKVariable(uiName, 'Entry_11', '') Entry_11 = tkinter.Entry(root, textvariable=Entry_11_Variable) Entry_11.place(x=174, y=255, width=364, height=42) Entry_11.configure(relief="sunken") Fun.Register(uiName, 'Entry_11', Entry_11) Button_12 = tkinter.Button(root, text="合并文件夹内所有文件", width=10, height=4) Button_12.place(x=168, y=312, width=234, height=48) Button_12.configure( command=lambda: Merge_cmd.Button_12_onCommand(uiName, "Button_12")) Button_12_Ft = tkinter.font.Font(family='System', size=12, weight='bold', slant='roman', underline=0, overstrike=0) Button_12.configure(font=Button_12_Ft) Fun.Register(uiName, 'Button_12', Button_12) #Inital all element's Data Fun.InitElementData(uiName)