Is there any way to get a wx.Notebook to have its tabs on the left
edge with the tab text showing horizontally?
Hi,
···
On Mon, Aug 2, 2010 at 3:59 PM, Al <almansur@rusnam.org> wrote:
Is there any way to get a wx.Notebook to have its tabs on the left
edge with the tab text showing horizontally?
No
The LabelBook control in AGW provides a layout similar to what you are
looking for though so you may want to look at that.
Cody
I recently updated LabelBook to allow for text only tabs and it just
got into svn.
http://trac.wxwidgets.org/ticket/12269
Mark
···
On Aug 3, 5:02 am, Cody Precord <codyprec...@gmail.com> wrote:
Hi,
On Mon, Aug 2, 2010 at 3:59 PM, Al <alman...@rusnam.org> wrote:
> Is there any way to get a wx.Notebook to have its tabs on the left
> edge with the tab text showing horizontally?No
The LabelBook control in AGW provides a layout similar to what you are
looking for though so you may want to look at that.Cody
From: wxpython-users@googlegroups.com [mailto:wxpython-
users@googlegroups.com] On Behalf Of Mark
Sent: Monday, August 02, 2010 4:57 PM
To: wxPython-users
Subject: [wxPython-users] Re: notebook tabs on left text horizontalI recently updated LabelBook to allow for text only tabs and it just
got into svn.wxTrac has been migrated to GitHub Issues - wxWidgets
Mark
> Hi,
>
> > Is there any way to get a wx.Notebook to have its tabs on the left
> > edge with the tab text showing horizontally?
>
> No
>
> The LabelBook control in AGW provides a layout similar to what you are
> looking for though so you may want to look at that.
>
> Cody--
To unsubscribe, send email to wxPython-
users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
[alm>]
Hi,
I've tried LabelBook and so far it does what I want.
I will have to adjust the colors as it's not using the system defaults.
I've pulled over the latest check in.
And I noticed some issues.
I have to do this
class AregEntNote( LB.LabelBook ):
def __init__(self, parent, id ):
LB.LabelBook.__init__(self, parent, id, size=(1000,200), style=
INB_LEFT
> INB_SHOW_ONLY_TEXT
> INB_NO_RESIZE
)
...
w = self._pages.GetTabAreaWidth()
...
self._pages.SetTabAreaWidth( 75 )
to set the tab area width. Could use some convenience methods.
Also, the tab area width setting doesn't take effect right away like
SetColor does.
I have to either click on an unselected tab or resize horizontally to see
the new width.
I have the tabs on the left.
Also, when I resize horizontally the page area slides under the tab area.
With this new check in the tabs, using INB_LEFT, are on the left but are
visually connected to
the left edge of the window rather than the page area. Even after a resize
there's a gap between the tab and the page. See attached.
Al
···
-----Original Message-----
On Aug 3, 5:02 am, Cody Precord <codyprec...@gmail.com> wrote:
> On Mon, Aug 2, 2010 at 3:59 PM, Al <alman...@rusnam.org> wrote:
Hi,
From: wxpython-users@googlegroups.com [mailto:wxpython-
users@googlegroups.com] On Behalf Of Mark
Sent: Monday, August 02, 2010 4:57 PM
To: wxPython-users
Subject: [wxPython-users] Re: notebook tabs on left text horizontalI recently updated LabelBook to allow for text only tabs and it just
got into svn.wxTrac has been migrated to GitHub Issues - wxWidgets
Mark
> Hi,
>
> > Is there any way to get a wx.Notebook to have its tabs on the left
> > edge with the tab text showing horizontally?
>
> No
>
> The LabelBook control in AGW provides a layout similar to what you are
> looking for though so you may want to look at that.
>
> Cody--
To unsubscribe, send email to wxPython-
users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en[alm>]
Hi,
I've tried LabelBook and so far it does what I want.
I will have to adjust the colors as it's not using the system defaults.I've pulled over the latest check in.
And I noticed some issues.
I have to do this
class AregEntNote( LB.LabelBook ):
def __init__(self, parent, id ):
LB.LabelBook.__init__(self, parent, id, size=(1000,200), style=
INB_LEFT
> INB_SHOW_ONLY_TEXT
> INB_NO_RESIZE
)
If you pulled out the latest SVN, you should not be using the style
keyword but the agwStyle one for styles related to LabelBook. The docs
are pretty clear about that:
:param `agwStyle`: the AGW-specific window style. This can be a
combination of the following bits (etc...)
...
w = self._pages.GetTabAreaWidth()
...
self._pages.SetTabAreaWidth( 75 )to set the tab area width. Could use some convenience methods.
I never thought about letting the tab area width adjustable: usually
it's set depending on the width of the text/images in the tab.
Also, the tab area width setting doesn't take effect right away like
SetColor does.
I have to either click on an unselected tab or resize horizontally to see
the new width.
I have the tabs on the left.
Try this:
self.SetAGWWindowStyleFlags(self.GetAGWWindowStyleFlags())
After your call to SetTabAreaWidth.
Also, when I resize horizontally the page area slides under the tab area.
With this new check in the tabs, using INB_LEFT, are on the left but are
visually connected to
the left edge of the window rather than the page area. Even after a resize
there's a gap between the tab and the page. See attached.
Not sure what you mean here: how should LabelBook look like in your case?
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
==> Never *EVER* use RemovalGroup for your house removal. You'll
regret it forever.
The Doomed City: Removal Group: the nightmare <==
···
On 3 August 2010 20:14, Al Mansur wrote:
-----Original Message-----
On Aug 3, 5:02 am, Cody Precord <codyprec...@gmail.com> wrote:
> On Mon, Aug 2, 2010 at 3:59 PM, Al <alman...@rusnam.org> wrote:
From: wxpython-users@googlegroups.com [mailto:wxpython-
users@googlegroups.com] On Behalf Of Andrea Gavana
Sent: Tuesday, August 03, 2010 11:22 AM
To: wxpython-users@googlegroups.com
Subject: Re: [wxPython-users] Re: notebook tabs on left text horizontalHi,
>
>
>> From: wxpython-users@googlegroups.com [mailto:wxpython-
>> users@googlegroups.com] On Behalf Of Mark
>> Sent: Monday, August 02, 2010 4:57 PM
>> To: wxPython-users
>> Subject: [wxPython-users] Re: notebook tabs on left text horizontal
>>
>> I recently updated LabelBook to allow for text only tabs and it just
>> got into svn.
>>
>> wxTrac has been migrated to GitHub Issues - wxWidgets
>>
>> Mark
>>
>> > Hi,
>> >
>> > > Is there any way to get a wx.Notebook to have its tabs on the left
>> > > edge with the tab text showing horizontally?
>> >
>> > No
>> >
>> > The LabelBook control in AGW provides a layout similar to what you
are
>> > looking for though so you may want to look at that.
>> >
>> > Cody
>>
>> --
>> To unsubscribe, send email to wxPython-
>> users+unsubscribe@googlegroups.com
>> or visit http://groups.google.com/group/wxPython-users?hl=en
> [alm>]
>
> Hi,
>
> I've tried LabelBook and so far it does what I want.
> I will have to adjust the colors as it's not using the system defaults.
>
> I've pulled over the latest check in.
>
> And I noticed some issues.
>
> I have to do this
>
>
> class AregEntNote( LB.LabelBook ):
> def __init__(self, parent, id ):
> LB.LabelBook.__init__(self, parent, id, size=(1000,200), style=
> INB_LEFT
> > INB_SHOW_ONLY_TEXT
> > INB_NO_RESIZE
> )If you pulled out the latest SVN, you should not be using the style
keyword but the agwStyle one for styles related to LabelBook. The docs
are pretty clear about that:
[alm>]
Yes the docs are clear, thank you very much.
I saw that option change and just hadn't done that part yet.
I've done it now and the tabs are no longer way over to the left.
:param `agwStyle`: the AGW-specific window style. This can be a
combination of the following bits (etc...)> ...
> w = self._pages.GetTabAreaWidth()
> ...
> self._pages.SetTabAreaWidth( 75 )
>
>
> to set the tab area width. Could use some convenience methods.I never thought about letting the tab area width adjustable: usually
it's set depending on the width of the text/images in the tab.
[alm>]
As you can see in the previous attachment there's a quite an inbalance
in the amount of space to the left and right of the tab text; mostly to the
right.
That's why I wanted to adjust the tab area width.
In fact, the default of 100 appears to be the minimum, even with single
letter tab labels.
> Also, the tab area width setting doesn't take effect right away like
> SetColor does.
> I have to either click on an unselected tab or resize horizontally to
see
> the new width.
> I have the tabs on the left.Try this:
self.SetAGWWindowStyleFlags(self.GetAGWWindowStyleFlags())
[alm>]
Didn't help (and it's Flag not Flags)
After your call to SetTabAreaWidth.
> Also, when I resize horizontally the page area slides under the tab
area.
>
> With this new check in the tabs, using INB_LEFT, are on the left but are
> visually connected to
> the left edge of the window rather than the page area. Even after a
resize
> there's a gap between the tab and the page. See attached.
Not sure what you mean here: how should LabelBook look like in your case?
[alm>]
See new attachment. This is on the 'slides under' part. The other part is
Ok.
···
-----Original Message-----
On 3 August 2010 20:14, Al Mansur wrote:
>> -----Original Message-----
>> On Aug 3, 5:02 am, Cody Precord <codyprec...@gmail.com> wrote:
>> > On Mon, Aug 2, 2010 at 3:59 PM, Al <alman...@rusnam.org> wrote:
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/==> Never *EVER* use RemovalGroup for your house removal. You'll
regret it forever.
The Doomed City: Removal Group: the nightmare <==--
To unsubscribe, send email to wxPython-
users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en