[wxPython-users] Re: Toolbook tabs go off the screen
Robin Dunn
robin at alldunn.com
Mon Nov 5 10:47:26 PST 2007
Craig Douglas wrote:
> 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.
Ah, I understand now. You are referring to the non-focused selection color.
>
> Would I be better off implementing my own book using a scrolled widget to
> contain buttons?
That would work. There is also some 3rd party widgets out there that
might work for you, such as Andrea's LabelBook. Or if it makes sense
you could reorganize your app so you don't need so many pages (perhaps
have nested ToolBooks for example.)
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list