Exemplo n.º 1
0
def logout(self):
    root.destroy()
    import login
    login.vp_start_gui()
Exemplo n.º 2
0
def logout():
    destroy_window()
    import login
    login.vp_start_gui()
    sys.stdout.flush()
Exemplo n.º 3
0
 def logoutUser(self):
     root.destroy()
     login.vp_start_gui()
Exemplo n.º 4
0
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()
Exemplo n.º 5
0
def first():
    sroot.destroy()
    if __name__ == '__main__':
        import login
        login.vp_start_gui()