def logout(self): root.destroy() import login login.vp_start_gui()
def logout(): destroy_window() import login login.vp_start_gui() sys.stdout.flush()
def logoutUser(self): root.destroy() login.vp_start_gui()
try: import Tkinter as tk except ImportError: import tkinter as tk try: import ttk py3 = False except ImportError: import tkinter.ttk as ttk py3 = True def init(top, gui, *args, **kwargs): global w, top_level, root w = gui top_level = top root = top def destroy_window(): # Function which closes the window. global top_level top_level.destroy() top_level = None if __name__ == '__main__': import login login.vp_start_gui()
def first(): sroot.destroy() if __name__ == '__main__': import login login.vp_start_gui()