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.
Yes, sizers and layouts don't work for wxNotebook. I hope it will be fixed
in the next versions.
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, youI 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)
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?
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?