Newbie question: wxNotebook
zeitlin at parthe.lpthe.jussieu.fr
Wed Jan 22 12:35:16 CET 2003
On Tue, 21 Jan 2003 19:56:45 +0300, Lexy Zhitenev <zhitenev at cs.vsu.ru> 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
> 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 =
> def OnFrameSize(evt, self=self, nb=nb):
> 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.
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?
More information about the Python-list