示例#1
0
def create_Toplevel1(root, *args, **kwargs):
    global w, w_win, rt
    rt = root
    w = tk.Toplevel(root)
    top = Toplevel1(w)
    gui_support.init(w, top, *args, **kwargs)
    return (w, top)
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = tk.Tk()
    top = Toplevel1(root)
    gui_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 = XML_____DAE_Py_Gui (root)
    gui_support.init(root, top)
    root.mainloop()
示例#4
0
def vp_start_gui():
    """Starting point when module is the main routine."""
    global val, w, root
    root = tk.Tk()
    top = LTOCheck(root)
    gui_support.init(root, top)
    root.mainloop()
示例#5
0
文件: gui.py 项目: pkulagu/CBA
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    gui_support.set_Tk_var()
    top = KPIT_Annotation_tool(root)
    gui_support.init(root, top)
    root.mainloop()
示例#6
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)
    top = New_Toplevel_1(w)
    gui_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#7
0
def create_CurveExtWindow(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = tk.Toplevel(root)
    top = CurveExtWindow(w)
    gui_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()
    gui_support.set_Tk_var()
    top = Showcase_GUI(root)
    gui_support.init(root, top)
    root.mainloop()
示例#9
0
def create_lto_check(root, *args, **kwargs):
    """Starting point when module is imported by another program."""
    global w, w_win, rt
    rt = root
    w = tk.Toplevel(root)
    top = LTOCheck(w)
    gui_support.init(w, top, *args, **kwargs)
    return (w, top)
def vp_start_gui(player_name_list):
    global val, w, root
    root = tk.Tk()
    gui_support.set_Tk_var()
    global top
    top = Toplevel(root, player_name_list)
    gui_support.init(root, top)
    root.mainloop()
示例#11
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    top = New_Toplevel_1(root)
    gui_support.init(root, top)
    root.protocol('WM_DELETE_WINDOW', destroy_app)
    root.mainloop()
def vp_start_gui():
    """Starting point when module is the main routine."""
    global val, w, root
    root = Tk()
    root.resizable(width=False, height=False)
    top = New_Toplevel(root)
    gui_support.init(root, top)
    root.mainloop()
示例#13
0
def create_Showcase_GUI(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel(root)
    gui_support.set_Tk_var()
    top = Showcase_GUI(w)
    gui_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#14
0
def create_Bunnysuite(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel (root)
    gui_support.set_Tk_var()
    top = Bunnysuite (w)
    gui_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#15
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    root.title('DNA-adventure')
    root.geometry('1500x450+350+150')
    w = New_Toplevel_1 (root)
    gui_support.init(root, w)
    root.mainloop()
def create_toplevel(rt, *args, **kwargs):
    global w, w_win, root
    # rt = root
    root = rt
    w = tk.Toplevel(root)
    gui_support.set_Tk_var()
    top = Toplevel(w)
    gui_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#17
0
def vp_start_gui(save=None, deselected=[]):
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    root.resizable(0,0)
    gui_support.set_Tk_var()
    top = Bunnysuite (root)
    gui_support.init(root, top, save=save, deselected=deselected)
    root.mainloop()
示例#18
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    top = Mailsafe_Express(root)
    gui_support.init(root, top)
    photo = PhotoImage(file='msecrop.png')
    label = Label(root, image=photo, borderwidth=0)
    label.pack()
    root.mainloop()
示例#19
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = tk.Tk()
    top = Toplevel1(root)
    gui_support.init(root, top)
    now = datetime.datetime.now()
    Toplevel1.initialTime = now.strftime("%H:%M:%S")

    root.mainloop()
示例#20
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)
    gui_support.init(root, top)
    root.mainloop()
示例#21
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('DNA-adventure')
    w.geometry('600x450+650+150')
    w_win = New_Toplevel_1 (w)
    gui_support.init(w, w_win, param)
    return w_win
示例#22
0
def create_Form(rt, *args, **kwargs):
    '''Starting point when module is imported by another module.
       Correct form of call: 'create_Form(root, *args, **kwargs)' .'''
    global w, w_win, root
    #rt = root
    root = rt
    w = tk.Toplevel(root)
    top = Form(w)
    gui_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#23
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)
    gui_support.set_Tk_var()
    top = Toplevel1(w)
    gui_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#24
0
def create_Toplevel1(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    global prog_location
    prog_call = sys.argv[0]
    prog_location = os.path.split(prog_call)[0]
    rt = root
    w = tk.Toplevel(root)
    top = Toplevel1(w)
    gui_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#25
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    root.title('PDF_Converter')
    geom = "576x277+650+98"
    root.geometry(geom)
    gui_support.set_Tk_var()
    w = PDF_Converter (root)
    gui_support.init(root, w)
    root.mainloop()
示例#26
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    root.title('New_Toplevel_1')
    geom = "603x581+292+132"
    root.geometry(geom)
    gui_support.set_Tk_var()
    w = New_Toplevel_1(root)
    gui_support.init(root, w)
    root.mainloop()
示例#27
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')
    geom = "603x581+292+132"
    w.geometry(geom)
    gui_support.set_Tk_var()
    w_win = New_Toplevel_1(w)
    gui_support.init(w, w_win, param)
    return w_win
示例#28
0
def create_PDF_Converter(root, param=None):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel (root)
    w.title('PDF_Converter')
    geom = "576x277+650+98"
    w.geometry(geom)
    gui_support.set_Tk_var()
    w_win = PDF_Converter (w)
    gui_support.init(w, w_win, param)
    return w_win
示例#29
0
def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = tk.Tk()
    top = Toplevel1(root)
    gui_support.init(root, top)
    try:
        base_path = sys._MEIPASS
    except Exception:
        base_path = os.path.abspath(".")
    root.iconbitmap(os.path.join(base_path, "Resources/icon.ico"))
    root.resizable(False, False)
    root.mainloop()
示例#30
0
def create_main(rt, *args, **kwargs):
    '''Starting point when module is imported by another module.
       Correct form of call: 'create_main(root, *args, **kwargs)' .'''
    global w, 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)
    gui_support.set_Tk_var()
    top = main (w)
    gui_support.init(w, top, *args, **kwargs)
    return (w, top)
示例#31
0
文件: dbg.py 项目: mazent/SC613
    #     gui_support.scheda.set(mat)
    #
    # def btbaud_l(self):
    #     gui_support.Messaggio.set("Aspetta ...")
    #     self.codaEXE.put(("btbaud_l",))
    #
    # def btbaud_s(self):
    #     esito, baud = utili.validaCampo(gui_support.baudBT.get(), 0, 2765800)
    #     if not esito:
    #         gui_support.Messaggio.set("? baud ?")
    #     else:
    #         gui_support.Messaggio.set("Aspetta ...")
    #         self.codaEXE.put(("btbaud_s", baud))


if __name__ == '__main__':
    ROOT = gui.Tk()
    ROOT.title('Debug scaldabagno')
    ROOT.geometry("603x581+285+127")

    gui_support.set_Tk_var()

    gui_support.Messaggio.set("Nessun errore")


    FINESTRA = GUI_DBG(ROOT)
    gui_support.init(ROOT, FINESTRA)
    ROOT.mainloop()

    FINESTRA.chiudi()
示例#32
0
def vp_start_gui():
    global val, w, root
    root = tk.Tk()
    top = Toplevel1(root)
    gui_support.init(root, top)
    root.mainloop()