コード例 #1
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    support.set_Tk_var()
    top = New_Toplevel(root)
    support.init(root, top)
    root.mainloop()
コード例 #2
0
def create_New_Toplevel(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel(root)
    support.set_Tk_var()
    top = New_Toplevel(w)
    support.init(w, top, *args, **kwargs)
    return (w, top)
コード例 #3
0
def create_Toplevel(rt, *args, **kwargs):
    '''Starting point when module is imported by another module.
       Correct form of call: 'create_Toplevel1(root, *args, **kwargs)' .'''
    global w, w_win, root
    # rt = root
    root = rt
    w = Toplevel(root)
    support.set_Tk_var()
    top = Toplevel(w)
    support.init(w, top, *args, **kwargs)
    return (w, top)