Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/309.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
Python 如何在traitsui生成的窗口中分配HSplit_Python_User Interface_Enthought_Traits_Traitsui - Fatal编程技术网

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的空间。我已经做了很多源代码潜水和阅读在线文档,但我没有任何运气


感谢您的帮助

请参见此处的示例,您可以将其扩展为拆分: