예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
 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)
예제 #6
0
 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)
예제 #7
0
 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)
예제 #8
0
 def __init__(self,root,isTKroot = True):
     uiName = self.__class__.__name__
     Fun.Register(uiName,'UIClass',self)
     self.root = root
     style = MergeNew_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_2= tkinter.Button(root,text="打开文件夹",width = 10,height = 4)
     Fun.Register(uiName,'Button_2',Button_2)
     Button_2.place(x = 16,y = 15,width = 109,height = 35)
     Button_2.configure(command=lambda:MergeNew_cmd.Button_2_onCommand(uiName,"Button_2"))
     Button_2_Ft=tkinter.font.Font(family='System', size=12,weight='bold',slant='roman',underline=0,overstrike=0)
     Button_2.configure(font = Button_2_Ft)
     ListBox_3= tkinter.Listbox(root)
     Fun.Register(uiName,'ListBox_3',ListBox_3)
     ListBox_3.place(x = 16,y = 57,width = 210,height = 215)
     Button_4= tkinter.Button(root,text=">",width = 10,height = 4)
     Fun.Register(uiName,'Button_4',Button_4)
     Button_4.place(x = 241,y = 86,width = 80,height = 28)
     Button_4.configure(command=lambda:MergeNew_cmd.Button_4_onCommand(uiName,"Button_4"))
     Button_4_Ft=tkinter.font.Font(family='System', size=12,weight='bold',slant='roman',underline=0,overstrike=0)
     Button_4.configure(font = Button_4_Ft)
     Button_5= tkinter.Button(root,text=">>",width = 10,height = 4)
     Fun.Register(uiName,'Button_5',Button_5)
     Button_5.place(x = 241,y = 132,width = 80,height = 28)
     Button_5.configure(command=lambda:MergeNew_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)
     Button_6= tkinter.Button(root,text="<",width = 10,height = 4)
     Fun.Register(uiName,'Button_6',Button_6)
     Button_6.place(x = 241,y = 178,width = 80,height = 28)
     Button_6.configure(command=lambda:MergeNew_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 = 241,y = 222,width = 80,height = 28)
     Button_7.configure(command=lambda:MergeNew_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 = 337,y = 59,width = 210,height = 215)
     Entry_9_Variable = Fun.AddTKVariable(uiName,'Entry_9','')
     Entry_9= tkinter.Entry(root,textvariable=Entry_9_Variable)
     Fun.Register(uiName,'Entry_9',Entry_9)
     Entry_9.place(x = 134,y = 293,width = 199,height = 34)
     Entry_9.configure(relief = "sunken")
     Label_10= tkinter.Label(root,text="合并后文件名",width = 10,height = 4)
     Fun.Register(uiName,'Label_10',Label_10)
     Label_10.place(x = 15,y = 298,width = 111,height = 24)
     Label_10.configure(relief = "flat")
     Label_10_Ft=tkinter.font.Font(family='System', size=12,weight='bold',slant='roman',underline=0,overstrike=0)
     Label_10.configure(font = Label_10_Ft)
     Button_11= tkinter.Button(root,text="合并",width = 10,height = 4)
     Fun.Register(uiName,'Button_11',Button_11)
     Button_11.place(x = 370,y = 292,width = 115,height = 36)
     Button_11.configure(command=lambda:MergeNew_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 = 341,y = 22,width = 205,height = 34)
     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)
     #Inital all element's Data 
     Fun.InitElementData(uiName)
예제 #9
0
 def __init__(self, root, isTKroot=True):
     uiName = self.__class__.__name__
     Fun.Register(uiName, 'UIClass', self)
     self.root = root
     style = WebbrowserProject_sty.SetupStyle()
     if isTKroot == True:
         root.title("Form1")
         Fun.CenterDlg(uiName, root, 1283, 793)
         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=1283, height=793)
     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
     Frame_2 = tkinter.Frame(root)
     Fun.Register(uiName, 'Frame_2', Frame_2)
     Frame_2.place(x=0, y=30, width=992, height=673)
     Frame_2.configure(bg="#888888")
     Frame_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=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,
                                   uiName=uiName,
                                   widgetName="Entry_3"))
     Button_4 = tkinter.Button(root, text="GO", width=10, height=4)
     Fun.Register(uiName, 'Button_4', Button_4)
     Button_4.place(x=888, y=3, width=100, height=24)
     Button_4.configure(command=lambda: WebbrowserProject_cmd.
                        Button_4_onCommand(uiName, "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.Register(uiName, 'Webbrowser_5', Webbrowser_5)
     Button_7 = tkinter.Button(root, text="Button", width=10, height=4)
     Fun.Register(uiName, 'Button_7', Button_7)
     Button_7.place(x=0, y=1, width=32, height=28)
     WebbrowserProject_cmd.ElementBGArray[7] = Image.open(
         "D:/github/TKinterDesigner/Examples/WebbrowserProject/back.png"
     ).convert('RGBA')
     WebbrowserProject_cmd.ElementBGArray_Resize[
         7] = WebbrowserProject_cmd.ElementBGArray[7].resize(
             (32, 28), Image.ANTIALIAS)
     WebbrowserProject_cmd.ElementBGArray_IM[7] = ImageTk.PhotoImage(
         WebbrowserProject_cmd.ElementBGArray_Resize[7])
     Button_7.configure(image=WebbrowserProject_cmd.ElementBGArray_IM[7])
     Button_7.configure(command=lambda: WebbrowserProject_cmd.
                        Button_7_onCommand(uiName, "Button_7"))
     Button_8 = tkinter.Button(root, text="Button", width=10, height=4)
     Fun.Register(uiName, 'Button_8', Button_8)
     Button_8.place(x=35, y=1, width=32, height=28)
     WebbrowserProject_cmd.ElementBGArray[8] = Image.open(
         "D:/github/TKinterDesigner/Examples/WebbrowserProject/front.png"
     ).convert('RGBA')
     WebbrowserProject_cmd.ElementBGArray_Resize[
         8] = WebbrowserProject_cmd.ElementBGArray[8].resize(
             (32, 28), Image.ANTIALIAS)
     WebbrowserProject_cmd.ElementBGArray_IM[8] = ImageTk.PhotoImage(
         WebbrowserProject_cmd.ElementBGArray_Resize[8])
     Button_8.configure(image=WebbrowserProject_cmd.ElementBGArray_IM[8])
     Button_8.configure(command=lambda: WebbrowserProject_cmd.
                        Button_8_onCommand(uiName, "Button_8"))
     Button_9 = tkinter.Button(root, text="Button", width=10, height=4)
     Fun.Register(uiName, 'Button_9', Button_9)
     Button_9.place(x=70, y=1, width=34, height=28)
     WebbrowserProject_cmd.ElementBGArray[9] = Image.open(
         "D:/github/TKinterDesigner/Examples/WebbrowserProject/refresh.png"
     ).convert('RGBA')
     WebbrowserProject_cmd.ElementBGArray_Resize[
         9] = WebbrowserProject_cmd.ElementBGArray[9].resize(
             (34, 28), Image.ANTIALIAS)
     WebbrowserProject_cmd.ElementBGArray_IM[9] = ImageTk.PhotoImage(
         WebbrowserProject_cmd.ElementBGArray_Resize[9])
     Button_9.configure(image=WebbrowserProject_cmd.ElementBGArray_IM[9])
     Button_9.configure(command=lambda: WebbrowserProject_cmd.
                        Button_9_onCommand(uiName, "Button_9"))
     Button_10 = tkinter.Button(root, text="Button", width=10, height=4)
     Fun.Register(uiName, 'Button_10', Button_10)
     Button_10.place(x=107, y=1, width=36, height=28)
     WebbrowserProject_cmd.ElementBGArray[10] = Image.open(
         "D:/github/TKinterDesigner/Examples/WebbrowserProject/home.png"
     ).convert('RGBA')
     WebbrowserProject_cmd.ElementBGArray_Resize[
         10] = WebbrowserProject_cmd.ElementBGArray[10].resize(
             (36, 28), Image.ANTIALIAS)
     WebbrowserProject_cmd.ElementBGArray_IM[10] = ImageTk.PhotoImage(
         WebbrowserProject_cmd.ElementBGArray_Resize[10])
     Button_10.configure(image=WebbrowserProject_cmd.ElementBGArray_IM[10])
     Button_10.configure(command=lambda: WebbrowserProject_cmd.
                         Button_10_onCommand(uiName, "Button_10"))
     #Inital all element's Data
     Fun.InitElementData(uiName)
     #Call Form_1's OnLoad Function
     WebbrowserProject_cmd.Form_1_onLoad(uiName)
예제 #10
0
 def __init__(self, root, isTKroot=True):
     className = self.__class__.__name__
     Fun.G_UIElementArray[className] = {}
     Fun.G_UIElementUserDataArray[className] = {}
     Fun.Register(className, 'UIClass', self)
     self.root = root
     style = TicketQuery_sty.SetupStyle()
     if isTKroot == True:
         root.title("Form1")
         Fun.CenterDlg(None, root, 721, 400)
     Form_1 = tkinter.Canvas(root, width=10, height=4)
     Form_1.place(x=0, y=0, width=721, height=400)
     Form_1.configure(bg="#efefef")
     Form_1.configure(highlightthickness=0)
     Fun.Register(className, 'root', root)
     Fun.Register(className, 'Form_1', Form_1)
     #Create the elements of root
     Label_2 = tkinter.Label(root, text="出发", width=10, height=4)
     Label_2.place(x=13, y=25, width=44, height=37)
     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)
     Fun.Register(className, 'Label_2', Label_2)
     Entry_3_Variable = Fun.AddTKVariable(className, 'Entry_3', '')
     Entry_3 = tkinter.Entry(root, textvariable=Entry_3_Variable)
     Entry_3.place(x=65, y=26, width=120, height=37)
     Entry_3.configure(relief="sunken")
     Fun.Register(className, 'Entry_3', Entry_3)
     Label_4 = tkinter.Label(root, text="到达", width=10, height=4)
     Label_4.place(x=193, y=32, width=46, height=28)
     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)
     Fun.Register(className, 'Label_4', Label_4)
     Entry_5_Variable = Fun.AddTKVariable(className, 'Entry_5', '')
     Entry_5 = tkinter.Entry(root, textvariable=Entry_5_Variable)
     Entry_5.place(x=242, y=26, width=120, height=37)
     Entry_5.configure(relief="sunken")
     Fun.Register(className, 'Entry_5', Entry_5)
     Label_6 = tkinter.Label(root, text="日期", width=10, height=4)
     Label_6.place(x=364, y=28, width=56, height=35)
     Label_6.configure(relief="flat")
     Label_6_Ft = tkinter.font.Font(family='System',
                                    size=12,
                                    weight='bold',
                                    slant='roman',
                                    underline=0,
                                    overstrike=0)
     Label_6.configure(font=Label_6_Ft)
     Fun.Register(className, 'Label_6', Label_6)
     Entry_8_Variable = Fun.AddTKVariable(className, 'Entry_8', '')
     Entry_8 = tkinter.Entry(root, textvariable=Entry_8_Variable)
     Entry_8.place(x=422, y=26, width=140, height=37)
     Entry_8.configure(relief="sunken")
     Fun.Register(className, 'Entry_8', Entry_8)
     Button_9 = tkinter.Button(root, text="查询", width=10, height=4)
     Button_9.place(x=568, y=23, width=119, height=43)
     Button_9.configure(command=lambda: TicketQuery_cmd.Button_9_onCommand(
         className, "Button_9"))
     Button_9_Ft = tkinter.font.Font(family='System',
                                     size=12,
                                     weight='bold',
                                     slant='roman',
                                     underline=0,
                                     overstrike=0)
     Button_9.configure(font=Button_9_Ft)
     Fun.Register(className, 'Button_9', Button_9)
     ListBox_10 = tkinter.Listbox(root)
     ListBox_10.place(x=13, y=74, width=690, height=309)
     Fun.Register(className, 'ListBox_10', ListBox_10)
     #Inital all element's Data
     Fun.InitElementData(className)
     #Call Form_1's OnLoad Function
     TicketQuery_cmd.Form_1_onLoad(className)