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