Vertical tab text in wxNotebook

Robin Dunn robin at alldunn.com
Tue Feb 12 16:16:43 PST 2008


Ramashish Baranwal wrote:
>>> Hi,
>>>
>>> I am using wxPython and want to create a wx.Notebook with tabs on left
>>> side, but with vertical tab text orientation. I have found that the
>>> tabs can be put on left side by specifying wx.NB_LEFT as style. How
>>> can I (if possible) make the orientation of tab title text vertical
>>> instead of horizontal?
>> Doesn't it do that by default?  Which platform are you on?  Which
>> version of wxPython?
>>
> No, it doesn't. Here is my sample code-
> 

> 
> I am on Linux (Fedora 7), with wxPython version 2.8.4.0.

It looks to be a limitation of GTK+, I don't see anything in the gtk 
notebook api functions for setting tab orientation.  wx could probably 
be made to support it by setting the angle used for the label widgets on 
the tabs, but that would need a patch and some testing, it's not just 
something that can be turned on easily.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-users mailing list