def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root root = Tk() root.title('EDLCC') root.geometry('1024x768+401+170') root.resizable(width = False, height = False) #root.wm_iconbitmap(bitmap = icon) #root.iconbitmap(default= ICON_PATH ) #root.iconbitmap(instance = icon) #print "Icon",type(icon) w = EDO_Solver (root) w.set_bind_options() root.protocol("WM_DELETE_WINDOW",destroy_EDO_Solver) w.set_bind_entries() v5_support.init(root, w) root.bind("<Motion>",w.a2_handler) root.bind("<Motion>",w.a1_handler) root.bind("<Motion>",w.a0_handler) root.bind("<Motion>",w.inxT_handler) root.bind("<Motion>",w.y0_handler) root.bind("<Motion>",w.dy0_handler) root.mainloop()
def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root root = Tk() root.title('EDO_Solver') root.geometry('1024x748+459+145') w = EDO_Solver (root) v5_support.init(root, w) root.mainloop()
def create_EDO_Solver (root, param=None): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = Toplevel (root) w.title('EDO_Solver') w.geometry('1024x748+459+145') w_win = EDO_Solver (w) v5_support.init(w, w_win, param) return w_win
def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root root = Tk() root.title('EDO_Solver') root.geometry('1024x768+401+170') root.resizable(width = False, height = False) w = EDO_Solver (root) v5_support.init(root, w) w.set_bind_entries() root.mainloop()
def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root root = Tk() root.title('EDO_Solver') root.geometry('1024x768+401+170') root.resizable(width = False, height = False) #root.wm_iconbitmap(bitmap = icon) #root.iconbitmap(default=icon) w = EDO_Solver (root) w.set_bind_options() root.protocol("WM_DELETE_WINDOW",destroy_EDO_Solver) root.after(5,w.set_bind_entries()) v5_support.init(root, w) w.set_bind_entries() root.mainloop()
def vp_start_gui(): ICON = (b'\x00\x00\x01\x00\x01\x00\x10\x10\x00\x00\x01\x00\x08\x00h\x05\x00\x00' b'\x16\x00\x00\x00(\x00\x00\x00\x10\x00\x00\x00 \x00\x00\x00\x01\x00' b'\x08\x00\x00\x00\x00\x00@\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x01\x00\x00\x00\x01') + b'\x00'*1282 + b'\xff'*64 _, ICON_PATH = tempfile.mkstemp() with open(ICON_PATH, 'wb') as icon_file: icon_file.write(ICON) '''Starting point when module is the main routine.''' global val, w, root root = Tk() root.title('EDO_Solver') root.geometry('1024x768+401+170') root.resizable(width = False, height = False) root.wm_iconbitmap(default = ICON_PATH) w = EDO_Solver (root) w.set_bind_options() root.after(250,w.set_bind_entries()) v5_support.init(root, w) w.set_bind_entries() root.mainloop()