def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root root = tk.Tk() top = Vrex(root) vrex_support.init(root, top) root.mainloop()
def create_Vrex(root, *args, **kwargs): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = tk.Toplevel(root) top = Vrex(w) vrex_support.init(w, top, *args, **kwargs) return (w, top)
def create_Vrex_for_Python(root, *args, **kwargs): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = Toplevel (root) top = Vrex_for_Python (w) vrex_support.init(w, top, *args, **kwargs) return (w, top)
def vp_start_gui(): '''Starting point when module is the main routine. This class configures and populates the toplevel window''' global val, w, root root = Tk() top = Vrex_for_Python (root) vrex_support.init(root, top) root.mainloop()
def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root root = Tk() root.title('Vrex_for_Python') root.geometry('609x605+617+155') w = Vrex_for_Python(root) vrex_support.init(root, w) root.mainloop()
def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root root = Tk() root.title('Vrex_for_Python') root.geometry('609x605+617+155') w = Vrex_for_Python (root) vrex_support.init(root, w) root.mainloop()
def create_Vrex_for_Python(root, param=None): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = Toplevel(root) w.title('Vrex_for_Python') w.geometry('609x605+617+155') w_win = Vrex_for_Python(w) vrex_support.init(w, w_win, param) return w_win
def create_Vrex_for_Python (root, param=None): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = Toplevel (root) w.title('Vrex_for_Python') w.geometry('609x605+617+155') w_win = Vrex_for_Python (w) vrex_support.init(w, w_win, param) return w_win