def create_About(root, *args, **kwargs): global w, w_win, rt rt = root w = Toplevel (root) top = About (w) about_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 root = Tk() top = New_Toplevel(root) about_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) top = New_Toplevel(w) about_support.init(w, top, *args, **kwargs) return (w, top)
def vp_start_gui(): global val, w, root root = Tk() top = About (root) about_support.init(root, top) root.mainloop()