开发者

Equivalent to Tkinter's place geometry manager in wxPython

开发者 https://www.devze.com 2023-02-08 02:20 出处:网络
Is there an equivalent to Tkinter\'s place geometry manager in wxPython? For those those that don\'t know, place al开发者_JS百科lows the positioning of widgets based on x y or relative x y coordinate

Is there an equivalent to Tkinter's place geometry manager in wxPython?

For those those that don't know, place al开发者_JS百科lows the positioning of widgets based on x y or relative x y coordinates.

I'm a fan of this geometry manager simply because it offers a lot of control over widget positioning.


I think the best answer is "no, there is no equivalent". You can use absolute positioning with the "pos" keyword argument in the constructor, but that doesn't come close to the power of place.


The GridBagSizer or FlexGridSizer are kind of like Tkinter's place. Of course, wx also supports absolute positions, although I do not recommend that.

0

精彩评论

暂无评论...
验证码 换一张
取 消