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