wxpython 中可调整大小的分隔线?
I am not sure what they are called, but I would like a resizable divider line, to separate widgets.
I would like something like this (except horizontal):
http://imm.io/bKgf
If you do not know what i am talking about please comment, thanks and sorry for my ignorance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能需要一个分割窗口:
You need, maybe, a splitterwindow:
我不确定这是否完全满足您的需求,但是您可以看看 wxPython 的 aui模块。该页面上有一些演示代码可以帮助您入门,并且 wxPython 演示 有一些值得尝试的好例子。
I'm not sure if this will exactly meet your needs, but you might have a look at wxPython's aui module. There's some demo code on that page that'll get you started, and the wxPython demo has some good examples to try out.
你想要的是wx.StaticLine。只需创建其中之一,然后使用 EXPAND 样式标志将其添加到您的 sizer 中即可。请参阅http://www.wxpython.org/docs/api/wx。 StaticLine-class.html 了解更多信息。
编辑:哦,我认为华金对 SplitterWindow 的建议可能是正确的。请注意,还有其他几种类型的 SplitterWindows,例如 MultiSplitterWindow 和 FourWaySplitter
What you want is wx.StaticLine. Just create one of those and add it to your sizer with the EXPAND style flag. See http://www.wxpython.org/docs/api/wx.StaticLine-class.html for more info.
EDIT: Oh, I think Joaquin's suggestion for a SplitterWindow may be spot on. Note that there a couple other types of SplitterWindows, like MultiSplitterWindow and FourWaySplitter