def vp_start_gui(adminInterfaz): '''Starting point when module is the main routine.''' global val, w, root root = Tk() top = Ventana_principal(root, adminInterfaz) mainWindow_support.init(root, top) root.mainloop()
def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root root = tk.Tk() top = Toplevel1(root) mainWindow_support.init(root, top) root.mainloop()
def create_Ventana_principal(root, *args, **kwargs): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = Toplevel(root) top = Ventana_principal(w) mainWindow_support.init(w, top, *args, **kwargs) return (w, top)