fixed sizes

I'm building an app with a splitter window, with navigation controls on the top panel and various data displayed (in text controls, combo boxes, etc.) on the bottom panel.

Question: is there a way to make *both* panels fixed in size? (either by proportion/percentage or by number of pixels) Almost as if the sash is there, but not movable.

Thanks.
Brian

Hello.
It sounds like you would be better off putting your two panels into a
vertical box sizer (wx.BoxSizer) instead of a splitter.
Good luck.
-Jason

···

-----Original Message-----
From: Brian Wolf [mailto:brian.wolf@activustech.com]
Sent: Wednesday, June 20, 2007 9:10 AM
To: wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] fixed sizes

I'm building an app with a splitter window, with navigation controls on
the top panel and various data displayed (in text controls, combo boxes,
etc.) on the bottom panel.

Question: is there a way to make *both* panels fixed in size? (either by
proportion/percentage or by number of pixels) Almost as if the sash is
there, but not movable.

Thanks.
Brian

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Probably you just need something like this
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(navigation,a)
sizer.Add(data,b)
window.SetSizer(sizer)
sizer.Fit(window)
window.Layout()

a/b is the proportion

Stani

Brian Wolf schreef:

···

I'm building an app with a splitter window, with navigation controls on
the top panel and various data displayed (in text controls, combo boxes,
etc.) on the bottom panel.

Question: is there a way to make *both* panels fixed in size? (either by
proportion/percentage or by number of pixels) Almost as if the sash is
there, but not movable.

Thanks.
Brian

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org