[wxPython-users] 2 panels in a NotebookPage
Matthieu Brucher
matthieu.brucher at gmail.com
Wed Oct 24 09:03:36 PDT 2007
>
> Maybe I'm mis-understanding, but for each page in a notebook, you
> typically use a separate panel object. Something like this:
>
> notebook =3D wx.Notebook(panel, -1, size=3D(750, 580))
> page1 =3D wx.Panel(notebook)
> page2 =3D wx.Panel(notebook)
>
> notebook.AddPage(page1, 'Title')
> notebook.AddPage(page2, 'Title')
>
> However, maybe this isn't the paradigm used for wx.NotebookPage.
> Admittedly, I've never used this specific version of the notebook control.
I thought I had to use NotebookPages, so I derived from them, and then I
need to add a panel on the NoteBookPage (which is derived from a Panel...).
Besides, I know that I may have to change the Notebook for context menu on
the tabs to close the page for instance.
Matthieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200710=
24/6f369901/attachment.htm
More information about the wxpython-users
mailing list