hi all,
I would like to add a ‘+’ button to a wx.Notebook or to a FlatNotebook as Firefox or Chrome have to add pages. The simpler way I’ve thought of to do this is always having an empty last page with a ‘+’ on the label. When the label of this page is clicked then a new page is added before the ‘+’ page and becomes selected. The problems with this approach are that the if the ‘+’ is a string then it looks ugly and if it is an image then empty space (empty label) is kept on the right of the image (ugly again). Is there any way to circumvent this or a better general approach?
hi all,
I would like to add a '+' button to a wx.Notebook or to a FlatNotebook
as Firefox or Chrome have to add pages. The simpler way I've thought of
to do this is always having an empty last page with a '+' on the label.
When the label of this page is clicked then a new page is added before
the '+' page and becomes selected. The problems with this approach are
that the if the '+' is a string then it looks ugly and if it is an image
then empty space (empty label) is kept on the right of the image (ugly
again). Is there any way to circumvent this or a better general approach?
We have some generic notebook widgets that have things like add-tab buttons built-in, with no need to try to hack around the native controls. For example, take a look at wx.lib.agw.flatnotebook.