Toolbook tabs go off the screen
Craig Douglas
craig.douglas at rtkinstruments.com
Mon Nov 5 00:58:54 PST 2007
Robin Dunn <robin <at> alldunn.com> writes:
>
> Craig Douglas wrote:
> > If the Toolbook contains more pages than it can display across the top
> > no scroll bar appears like it would with the Listbook. Is there an
> > option I'm missing or is the functionality simply not there?
>
> It's not there. Toolbook uses a wx.ToolBar and so it can only do what
> wx.Toolbar can do.
>
> >
> > If the latter is true, how could I go about implementing this? I was
> > using a Listbook but I need a way of knowing which page is currently
> > selected easily and the Toolbook does this excellently.
>
> book.GetSelection() should work correctly for any of the book classes.
> If not then it is a bug that needs to be filed at SourceForge.
>
I meant I need the user to always know which page they are on. The Toolbook
clearly shows this because they are like toggle buttons, but the listbook just
highlights when clicked and if clicked elsewhere then it isn't very obvious
which page you are on.
Would I be better off implementing my own book using a scrolled widget to
contain buttons?
My only other choice is to put some type of title on the page but I don't
really want to waste that kind of room and I really need the pictorial tabs
like these type of books provide
Craig
More information about the wxpython-users
mailing list