[英]How to apportion HSplit in traitsui-generated window
In this code , there is the following: 在此代码中 ,包含以下内容:
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)
The HSplit divides the window into two panels of equal size. HSplit将窗口分为两个大小相等的面板。 What can I do to make one panel take up 1/3 of the space while the other occupies the other 2/3 of the space in the window.
我该怎么做才能使一个面板占据1/3的空间,而另一个占据窗口中2/3的空间。 I have done a lot of source diving and read the online documentation, but I am not having any luck.
我已经完成了很多源潜水工作并阅读了在线文档,但是我没有任何运气。
Any help appreciated! 任何帮助表示赞赏!
请在此处查看示例,您可以将其扩展为拆分: https : //github.com/enthought/traitsui/blob/master/examples/demo/Useful/demo_group_size.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.