tkinter_ui.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:exit_code_dev 作者: TheCyaniteProject 项目源码 文件源码
def makeframe():
    global frame_open
    global app_frame
    global explorer_button
    global browser_button
    global quickpad_button
    global list_apps_open
    global list_scripts_open
    console.reload_scripts()
    console.reload_apps()
    if not frame_open:
        # apps_button.configure(text='Applications [X]')
        app_frame = LabelFrame()
        app_frame.place(anchor=SW, relx=0, x=5, rely=1, y=-30)
        Button(app_frame, text='Apps >', relief=FLAT, width=13, cursor='hand2', command=list_bin).pack(side=BOTTOM, fill=X)
        Button(app_frame, text='Scripts >', relief=FLAT, cursor='hand2', command=list_scripts).pack(side=BOTTOM, fill=X)
        ttk.Separator(app_frame, orient=HORIZONTAL).pack(side=BOTTOM, fill=X)
        # Tabs
        quickpad_button = Button(app_frame, textvariable=quickpad_app, cursor='hand2', command=disable_3)
        quickpad_button.pack(side=BOTTOM, fill=X)
        browser_button = Button(app_frame, textvariable=browser_app, cursor='hand2', command=disable_2)
        browser_button.pack(side=BOTTOM, fill=X)
        explorer_button = Button(app_frame, textvariable=explorer_app, cursor='hand2', command=disable_1)
        explorer_button.pack(side=BOTTOM, fill=X)

        frame_open = True
    else:
        # apps_button.configure(text='Applications')
        if list_apps_open:
            apps_list.destroy()
            list_apps_open = False
        if list_scripts_open:
            scripts_list.destroy()
            list_scripts_open = False
        app_frame.destroy()
        frame_open = False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号