Python 如何在traitsui生成的窗口中分配HSplit
在这方面,有以下几点:Python 如何在traitsui生成的窗口中分配HSplit,python,user-interface,enthought,traits,traitsui,Python,User Interface,Enthought,Traits,Traitsui,在这方面,有以下几点: view = View(HSplit(Item('figure', editor=MPLFigureEditor(), dock='vertical'), Item('panel', style="custom"), show_labels=False, ), resizable=True,
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的空间。我已经做了很多源代码潜水和阅读在线文档,但我没有任何运气
感谢您的帮助 请参见此处的示例,您可以将其扩展为拆分: