I was wondering if anyone has any experience with the “LabelBook” control that posted on Andrea Gavana’s website
http://xoomer.alice.it/infinity77/eng/LabelBook.html
I can’t seem to “get” how to set the tab area width.
Attached is a sample program that demonstrates my problem.
When the control initializes, it seems to ignore the new tab width, until the user clicks on one of the other tabs, then the tab width resizes.
How do I get the label book to initialize with the new tab area width.
Thanks.
ps. You will need to have installed the labelbook from the website to make this program work.
SimpleLabelBook.pyw (1.56 KB)
I don’t know if this is the best way but adding:
self.book._pages.SetSizeHints(self.book._pages.GetTabAreaWidth(), -1)
right after:
self.book._pages.SetTabAreaWidth(tabwidth)
worked for me.
···
On 2/18/07, Geoff Skerrett Geoff@teammsa.com wrote:
I was wondering if anyone has any experience with the “LabelBook” control that posted on Andrea Gavana’s website
http://xoomer.alice.it/infinity77/eng/LabelBook.html
I can’t seem to “get” how to set the tab area width.
Attached is a sample program that demonstrates my problem.
When the control initializes, it seems to ignore the new tab width, until the user clicks on one of the other tabs, then the tab width resizes.
How do I get the label book to initialize with the new tab area width.
Thanks.
ps. You will need to have installed the labelbook from the website to make this program work.
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Thanks.
That worked perfectly.
···
________________________________
From: roee shlomo [mailto:roee88@gmail.com]
Sent: Tuesday, February 20, 2007 4:29 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Help with LabelBook Control - Setting
tabswidth
I don't know if this is the best way but adding:
self.book._pages.SetSizeHints(self.book._pages.GetTabAreaWidth(), -1)
right after:
self.book._pages.SetTabAreaWidth(tabwidth)
worked for me.