Hi,
Does regular notebook (wx.Notebook) have any advantages over wx.lib.agw.auinotebook? May there be any reasons I should use wx.Notebook instead of wx.lib.agw.auinotebook? Can auinotebook do everything that wx.Notebook can?
Best Regards
Hi,
Does regular notebook (wx.Notebook) have any advantages over wx.lib.agw.auinotebook? May there be any reasons I should use wx.Notebook instead of wx.lib.agw.auinotebook? Can auinotebook do everything that wx.Notebook can?
Best Regards
Hi Steve,
On Friday, March 14, 2014 1:52:05 AM UTC-5, steve wrote:
Hi,
Does regular notebook (wx.Notebook) have any advantages over wx.lib.agw.auinotebook? May there be any reasons I should use wx.Notebook instead of wx.lib.agw.auinotebook? Can auinotebook do everything that wx.Notebook can?
Best Regards
I believe the auinotebook has the same features as a wx.Notebook. The main reason to use an AuiNotebook is if you want to change the look of the notebook or to add docking. If you want to look native, then the wx.Notebook is the way to go. Also AUI is a bit more complex to use than a regular wx.Notebook.
Have you used the wxPython demo to check them both out and take a look?
That might help you decided. for me, the AUI is a significantly different
user experience.
On Fri, Mar 14, 2014 at 2:52 AM, steve <oslocourse@gmail.com> wrote:
Hi,
Does regular notebook (wx.Notebook) have any advantages over
wx.lib.agw.auinotebook? May there be any reasons I should use wx.Notebook instead
of wx.lib.agw.auinotebook? Can auinotebook do everything that wx.Notebook
can?
Well, yes and no.
IIRC the AUI Notebook can’t double/triple line the tabs up, they normally go in left to right all on one tabCtrl line.
I don’t recall Left and Right sided tabs have been implemented yet with AUI Notebook.
You may have issues resoring nb perspectives with the AUI Notebook if the layout is complex. not sure if this has been looked though yet.
Also you may have some dragImage issues with the tabs also depending on the wx.version with AUI Notebook.
Other: Aui Notebook has (In my opinion) a bit better named functions that do similar with Notebook stuff Ex: GetPageIndex vs GetPage/FindPage
Like Mike said, the Notebook is a native look and the AUI Notebook is more graphically customizable.
I don’t recall if you can inject widgets into a Notebook Tab ATM, but I recall AUI can.
AUI also has some nice mixin classes, utils, and other addins such as aui_switcherdialog
So, it really depends on what you want. Notebook is fine for simple slap something together and call it a day, as where AUI Notebook will take you more time to setup if you want nicer more modern features.
Or you could use the wx.BookCtrlBase and roll your own implementation if you need something custom.
On Friday, March 14, 2014 1:52:05 AM UTC-5, steve wrote:
Hi,
Does regular notebook (wx.Notebook) have any advantages over wx.lib.agw.auinotebook? May there be any reasons I should use wx.Notebook instead of wx.lib.agw.auinotebook? Can auinotebook do everything that wx.Notebook can?
Best Regards