[wxPython] size constraints for notebook pages

I've been experimenting with resizing a notebook, and trying to get the
pages internally to match the size. I've attempted setting a constraint
on each page to match width and height, but it has no effect.

lc = wxLayoutConstraints()
lc.width.SameAs(self, wxWidth)
lc.height.SameAs(self, wxHeight)
    
notebook.SetConstraints(lc)

notebook.lc = wxLayoutConstraints()
notebook.lc.width.SameAs(notebook, wxWidth)
notebook.lc.height.SameAs(notebook, wxHeight)
    
def AddPage(page, title):
  page.SetConstraints(notebook.lc)
  notebook.AddPage(page, title)
  
What am I doing wrong?

···

----------
Keith J. Farmer
kfarmer@thuban.org
http://www.thuban.org

I've been experimenting with resizing a notebook, and trying to get the
pages internally to match the size. I've attempted setting a constraint
on each page to match width and height, but it has no effect.

Notebook pages should not need any constraints or sizers, as it should
already be sizing the page windows to fill the notbook's client area. If
it's not it's a bug. The children of the page window is another issue, and
usign a sizer or constraints there is common.

···

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