示例#1
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    top = Main (root)
    main_support.init(root, top)
    root.mainloop()
示例#2
0
def start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    top = main_support.MainGUI (root)
    main_support.init(root, top)
    root.mainloop()
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    top = New_Toplevel_1(root)
    main_support.init(root, top)
    root.mainloop()
示例#4
0
def create_New_Toplevel_1(root, *args, **kwargs):
    global w, w_win, rt
    rt = root
    w = Toplevel(root)
    top = New_Toplevel_1(w)
    main_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#5
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = tk.Tk()
    main_support.set_Tk_var()
    top = mainTop (root)
    main_support.init(root, top)
    root.mainloop()
示例#6
0
def create_Main(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel (root)
    top = Main (w)
    main_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#7
0
def create_PSVImgTools(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel(root)
    top = PSVImgTools(w)
    main_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#8
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    main_support.set_Tk_var()
    top = Data_Mining_Beta_Version(root)
    main_support.init(root, top)
    root.mainloop()
示例#9
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()
    top = Main (root)
    main_support.init(root, top)
    root.mainloop()
示例#10
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, sroot
    sroot = tk.Tk()
    sroot.eval('tk::PlaceWindow . center')
    main_support.set_Tk_var()
    top = Toplevel1(sroot)
    main_support.init(sroot, top)
    sroot.mainloop()
示例#11
0
def vp_start_gui():
    global val, w, root
    global prog_location
    prog_call = sys.argv[0]
    prog_location = os.path.split(prog_call)[0]
    root = tk.Tk()
    top = Toplevel1(root)
    main_support.init(root, top)
    root.mainloop()
示例#12
0
文件: main.py 项目: wuyou33/PMM
def create_Main(root):
    '''Starting point when module is imported by another program.'''
    global w, w_win
    w = Toplevel(root)
    w.title('Main')
    w.geometry('600x450+918+173')
    w_win = Main(w)
    main_support.init(w, w_win)
    return w_win
示例#13
0
文件: main.py 项目: wuyou33/PMM
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    root.title('Main')
    root.geometry('600x450+650+150')
    w = Main(root)
    main_support.init(root, w)
    root.mainloop()
示例#14
0
def create_Data_Mining_Beta_Version(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel(root)
    main_support.set_Tk_var()
    top = Data_Mining_Beta_Version(w)
    main_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#15
0
文件: main.py 项目: FrauBluher/PMSM
def create_Main (root):
    '''Starting point when module is imported by another program.'''
    global w, w_win
    w = Toplevel (root)
    w.title('Main')
    w.geometry('600x450+918+173')
    w_win = Main (w)
    main_support.init(w, w_win)
    return w_win
示例#16
0
文件: main.py 项目: FrauBluher/PMSM
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    root.title('Main')
    root.geometry('600x450+918+173')
    w = Main (root)
    main_support.init(root, w)
    root.mainloop()
示例#17
0
文件: main.py 项目: FrauBluher/PMSM
def create_Main (root, param=None):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel (root)
    w.title('Main')
    w.geometry('600x450+650+150')
    w_win = Main (w)
    main_support.init(w, w_win, param)
    return w_win
示例#18
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = tk.Tk()
    #root.wm_attributes('-type', 'splash')

    main_support.set_Tk_var()
    top = Toplevel1(root)
    main_support.init(root, top)
    root.mainloop()
示例#19
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    if sys.platform.__contains__(
            "win") and not sys.platform.__contains__("darwin"):
        root.iconbitmap(bitmap=defs.getWorkingDir() + '\icon.ico')
    top = PSVImgTools(root)
    main_support.init(root, top)
    root.mainloop()
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)
    top = Toplevel1(w)
    main_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#21
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    global prog_location
    prog_call = sys.argv[0]
    prog_location = os.path.split(prog_call)[0]
    root = tk.Tk()
    top = Toplevel1(root)
    main_support.init(root, top)
    root.mainloop()
示例#22
0
文件: main.py 项目: wuyou33/PMM
def create_Main(root, param=None):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel(root)
    w.title('Main')
    w.geometry('600x450+650+150')
    w_win = Main(w)
    main_support.init(w, w_win, param)
    return w_win
示例#23
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root, top
    root = tk.Tk()
    root.iconbitmap('ico.ico')
    top = Toplevel1(root)
    main_support.init(root, top)

    top.Button2.bind('<Button-1>', about)
    top.Button1.bind("<Button-1>", (lambda x: start(top)))
    root.mainloop()
示例#24
0
def create_Toplevel1(rt, *args, **kwargs):
    global w, w_win, root
    global prog_location
    prog_call = sys.argv[0]
    prog_location = os.path.split(prog_call)[0]
    # rt = root
    root = rt
    w = tk.Toplevel(root)
    top = Toplevel1(w)
    main_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#25
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
    global prog_location
    prog_call = sys.argv[0]
    prog_location = os.path.split(prog_call)[0]
    #rt = root
    root = rt
    w = tk.Toplevel(root)
    top = Toplevel1(w)
    main_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#26
0
def vp_start_gui():
    global val, w, root
    root = Tk()
    top = New_Toplevel_1(root)
    main_support.init(root, top)
    root.mainloop()