Ejemplo n.º 1
0
def vp_start_gui(api):
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    root.title('Flashcards_Manager')
    geom = "545x435+839+164"
    root.geometry(geom)
    gui_support.set_Tk_var()
    w = Flashcards_Manager(root)
    gui_support.init(root, w, arg=api)
    root.mainloop()
Ejemplo n.º 2
0
def create_Flashcards_Manager(root, param=None):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel(root)
    w.title('Flashcards_Manager')
    geom = "545x435+839+164"
    w.geometry(geom)
    gui_support.set_Tk_var()
    w_win = Flashcards_Manager(w)
    gui_support.init(w, w_win, param)
    return w_win