Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Python3.x在tkinter中对笔记本进行分组_Python_User Interface_Python 3.x_Tkinter_Tkinter Canvas - Fatal编程技术网

使用Python3.x在tkinter中对笔记本进行分组

使用Python3.x在tkinter中对笔记本进行分组,python,user-interface,python-3.x,tkinter,tkinter-canvas,Python,User Interface,Python 3.x,Tkinter,Tkinter Canvas,我正在使用tkinter使用python 3.x创建一个简单的GUI。我想对使用ttk.Notebook创建的某些选项卡进行分组,因为我有许多选项卡,屏幕尺寸变得巨大且无组织。有没有办法对使用ttk笔记本创建的数据进行分组 迄今为止的代码: gui_optimizer.configure(background="#a1dbcd") tab = ttk.Notebook(gui_optimizer) main_options = tkinter.Frame(tab, bg="#a1dbcd")

我正在使用tkinter使用python 3.x创建一个简单的GUI。我想对使用
ttk.Notebook
创建的某些选项卡进行分组,因为我有许多选项卡,屏幕尺寸变得巨大且无组织。有没有办法对使用
ttk笔记本创建的数据进行分组

迄今为止的代码:

gui_optimizer.configure(background="#a1dbcd")

tab = ttk.Notebook(gui_optimizer)

main_options = tkinter.Frame(tab, bg="#a1dbcd") # Main options
file_customizations = tkinter.Frame(tab, bg="#a1dbcd") # File related options
other_options_1 = tkinter.Frame(tab, bg="#a1dbcd") # Most used GUI pages
other_options_2 = tkinter.Frame(tab, bg="#a1dbcd") 
other_options_3 = tkinter.Frame(tab, bg="#a1dbcd")

tab.add(main_options, text='Main options')
tab.add(file_customizations, text='File customizations')
tab.add(other_options_1, text="Aux options 1")
tab.add(other_options_2, text="Aux options 2")
tab.add(other_options_3, text="Aux options 3")

我想将
辅助选项
分组到一个选项卡中,当我单击它时,它可以显示分组的选项。任何想法都会非常有用……

你想在笔记本中放一个笔记本吗?@BryanOakley是的,可能吗?当然。没有理由做不到。你应该试试看。