TKinter TTK Notebook and frame with plot并排

问题描述

总的来说,我是 TKinter 和 guis 的绝对初学者。

我的整个窗口由一个带有两个选项卡的 ttk 笔记本组成。 在这些选项卡中的一个中,我希望将框架从中间拆分,在左侧使用最多 6 个选项卡的附加笔记本,在右侧包含一个包含画布(绘图)的框架,最好由分隔符分隔。

这是我目前所拥有的一些:

self.other_tab= other_tab_frame_class(self) #unrelated to my issue
self.add(self.other_tab,text='other tab name')
self.main_tab= ttk.Frame(self,width=1200)
self.add(self.main_tab,text='my tab name')
self.main_tab_left= ttk.Notebook(self.main_tab,width=600)
self.main_tab.Sep = ttk.Separator(self.main_tab,orient=tk.VERTICAL)
self.main_tab_right= ttk.Notebook(self.main_tab)

main_tab_left 已经有工作内容。 main_tab_right 的加入,打破了一切。

非常感谢您的帮助!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)