在此code , 有以下内容:
view = View(HSplit(Item('figure', editor=MPLFigureEditor(),
dock='vertical'),
Item('panel', style="custom"),
show_labels=False,
),
resizable=True,
height=0.75, width=0.75,
handler=MainWindowHandler(),
buttons=NoButtons)
HSplit 将窗口分成大小相等的两个面板。我该怎么做才能使一个面板占据 1/3 的空间,而另一个面板占据窗口中另外 2/3 的空间。我做了很多源代码潜水并阅读了在线文档,但我没有任何运气。
感谢任何帮助!
请您参考如下方法:
请参阅此处的示例,您可以将其扩展为拆分:
编辑:移至https://github.com/enthought/traitsui/blob/main/traitsui/examples/demo/Misc/demo_group_size.py
