コード例 #1
0
ファイル: menu.py プロジェクト: ArseniSoitu/menu_tkinter
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = tk.Tk()
    top = Toplevel1 (root)
    menu_support.init(root, top)
    root.mainloop()
コード例 #2
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    menu_support.set_Tk_var()
    top = Menu_Example (root)
    menu_support.init(root, top)
    root.mainloop()
コード例 #3
0
ファイル: menu.py プロジェクト: ArseniSoitu/menu_tkinter
def create_Toplevel1(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = tk.Toplevel (root)
    top = Toplevel1 (w)
    menu_support.init(w, top, *args, **kwargs)
    return (w, top)
コード例 #4
0
def create_Menu_Example(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel (root)
    menu_support.set_Tk_var()
    top = Menu_Example (w)
    menu_support.init(w, top, *args, **kwargs)
    return (w, top)
コード例 #5
0
def create_New_Toplevel_1(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel (root)
    menu_support.set_Tk_var()
    top = New_Toplevel_1 (w)
    menu_support.init(w, top, *args, **kwargs)
    return (w, top)
コード例 #6
0
def vp_start_gui():
    '''Starting point when module is the main routine.
       This class configures and populates the toplevel window'''
    global val, w, root
    root = Tk()
    menu_support.set_Tk_var()
    top = New_Toplevel_1 (root)
    menu_support.init(root, top)
    root.mainloop()
コード例 #7
0
ファイル: menu.py プロジェクト: FrauBluher/PMSM
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    root.title('New_Toplevel_1')
    root.geometry('600x450+650+150')
    menu_support.set_Tk_var()
    w = New_Toplevel_1 (root)
    menu_support.init(root, w)
    root.mainloop()
コード例 #8
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    root.title('New_Toplevel_1')
    root.geometry('600x450+650+150')
    menu_support.set_Tk_var()
    w = New_Toplevel_1(root)
    menu_support.init(root, w)
    root.mainloop()
コード例 #9
0
ファイル: menu.py プロジェクト: FrauBluher/PMSM
def create_New_Toplevel_1 (root, param=None):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel (root)
    w.title('New_Toplevel_1')
    w.geometry('600x450+650+150')
    menu_support.set_Tk_var()
    w_win = New_Toplevel_1 (w)
    menu_support.init(w, w_win, param)
    return w_win
コード例 #10
0
def create_Toplevel1(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 = tk.Toplevel(root)
    menu_support.set_Tk_var()
    top = Toplevel1(w)
    menu_support.init(w, top, *args, **kwargs)
    return (w, top)
コード例 #11
0
def create_New_Toplevel_1(root, param=None):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel(root)
    w.title('New_Toplevel_1')
    w.geometry('600x450+650+150')
    menu_support.set_Tk_var()
    w_win = New_Toplevel_1(w)
    menu_support.init(w, w_win, param)
    return w_win