def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root root = Tk() login_support.set_Tk_var() top = New_Toplevel(root) login_support.init(root, top) root.mainloop()
def create_New_Toplevel(root, *args, **kwargs): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = Toplevel(root) login_support.set_Tk_var() top = New_Toplevel(w) login_support.init(w, top, *args, **kwargs) return (w, top)
def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root global prog_location prog_call = sys.argv[0] prog_location = os.path.split(prog_call)[0] root = tk.Tk() login_support.set_Tk_var() top = Toplevel1(root) login_support.init(root, top) root.mainloop()
def create_Toplevel1(root, *args, **kwargs): '''Starting point when module is imported by another program.''' global w, w_win, rt global prog_location prog_call = sys.argv[0] prog_location = os.path.split(prog_call)[0] rt = root w = tk.Toplevel(root) login_support.set_Tk_var() top = Toplevel1(w) login_support.init(w, top, *args, **kwargs) return (w, top)