Hello,
I’d like to use the AuiNotebook because I need to have a frame with tabs on top and bottom and I love how this lets you drag and drop them as well. I’m trying to implement this and I’m hung up on how to set the tab locations when the window frame is launched. For example, I’d like the window to open with the tabs preset to the positions shown in this example. Unfortunately the only way I can move tabs around is to drag with mouse. How do I get them “pre-loaded” in those positions when the window is launched? I’ve looked here: https://wxpython.org/Phoenix/docs/html/wx.aui.AuiNotebook.html#wx.aui.AuiNotebook.Selection
But don’t see a way to do it with a method or the init constructor.
Here is an example of what I’d like to set the locations to on window launch.
It would help if you can also upload or link to a source code example instead of a JPG screenshot only. I might have a - customized - solution for you.
You simply build your notebook as usually then you call Split twice to move one page to the left and one to the bottom. I’m not sure if it will work - I’ve never tried it myself - but it’s worth a shot .
Let me know if any of that code in number 2 doesn’t work. I haven’t had a chance to do a thorough audit of my wxPython tutorials yet, although I know most of them work in wxPython 4.
The demo/version.py file is generated when wxPython is built, and is not included in git any longer. So if you want to use the git version of the demo then it’s expected that you will also be doing a build of wxPython.
Otherwise, the link at extras that Thom shared is the right way to go.