FAQ

On Tue, 21 Jan 2003 19:56:45 +0300, Lexy Zhitenev wrote:
Yes, sizers and layouts don't work for wxNotebook. I hope it will be fixed
in the next versions.
There are no known [to me] problems with using either the sizers or layout
constraints with wxNotebook and, in fact, I do it regularily in my code.

The code of the OP had a problem: the notebook page wasn't created with the
notebook as the parent (it must be). Maybe this explains the problems he has
had.
The only thing I can propose is to use code like that.
I use this variant:

nb = wxNotebook(self, -1, (0, 0), size=self.GetClientSize(), style =
wxNB_BOTTOM)
def OnFrameSize(evt, self=self, nb=nb):
nb.SetSize(self.GetClientSize())
EVT_SIZE(self, OnFrameSize)
If you want wxNotebook to take up the entire client area of the frame, you
don't need to do anything at all -- this will happen by default.

Regards,
VZ
--
GCS/GM d? H+ s++:-- p2 au--- a- w+ v C+++ UBLS+++ P- L++ N++ E--- W++++ M? V--
-po+ R++ G`` !tv b+++ D--- e++++ u++ h--- f+ r++ n- y?

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 5 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedJan 21, '03 at 10:17a
activeJan 22, '03 at 11:35a
posts5
users4
websitepython.org

People

Translate

site design / logo © 2022 Grokbase