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.
精彩评论