wxNotebook size

I want to add a control Panel on the left side.
In this Panel I want a Notebook filling the whole available space.
Unfortunately the notebook remains very small, too small for placing
controls inside.
What can I do that the notebook always fills the whole available area,
independent of the parents size?

class NavPanel(wxPanel):

    def __init__(self, parent, ID, doodle):
        wxPanel.__init__(self, parent, -1)

        self.notebook = wxNotebook(self, -1, style=wxNB_BOTTOM)

        win = wxPanel(self, -1)

        self.notebook.AddPage(win, "Config")

Thanks,

Markus

Markus von Ehr wrote:

I want to add a control Panel on the left side.
In this Panel I want a Notebook filling the whole available space.
Unfortunately the notebook remains very small, too small for placing
controls inside.
What can I do that the notebook always fills the whole available area,
independent of the parents size?

The same way you would make any window fill all vailable space of its parent. There are some options:

1. Use an EVT_SIZE handler on the parent, something like this:

  def OnSize(self, evt):
    self.child.SetSize(self.GetSize)

2. Use sizers to accomplish the same thing.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robb Shecter wrote:

Hi,

I think I've found a bug in lib/buttons.py. Basically, it seems like I have to explicitly Refresh the buttons when changing their Enabled state. This script demonstrates it:

Thanks, I've checked in a fix.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!