简体   繁体   中英

Equivalent to Tkinter's place geometry manager in wxPython

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

For those those that don't know, place allows the positioning of widgets based on xy or relative xy 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM