By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,002 Members | 1,020 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,002 IT Pros & Developers. It's quick & easy.

Expanding the size of wx Frame

P: n/a
hello all, is there a way to make wxpython frame to expand itself
as we add controls to it

Nov 9 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Nov 8, 11:02 pm, sundarvenkata <sundarvenk...@gmail.comwrote:
hello all, is there a way to make wxpython frame to expand itself
as we add controls to it
Yes. I recommend using sizers. Then you can have the frame fit the
widgets it holds using the Fit() command. I think this only applies
when you first create the frame. After that the usual way is to call
Layout() or Refresh() on the parent of the widgets (the frame in this
case).

I've done something like this before when I've changed elements in my
panel:

self.SetClientSize(self.panel.GetBestSize())

You might also find the wx.CollapsiblePane valuable.

Mike

Nov 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.