Paulo Nuin wrote:
Sure
class multiGUI(wx.Frame):
def OnShowLog(self, event):
if self.GetSize() == (600, 240):
self.SetSize(size=(950, 240))
else:
self.SetSize(size=(600, 240))Some part of the code has been omitted.
1. MakingSampleApps - wxPyWiki
2. Although it is not likely that there will be differences, you are not guaranteed that GetSize() will be the same as the size passed to SetSize.
3. Using all these fixed sizes and positions is just asking for trouble, especially if you want your layout to look good on more than just your computer. Chuck most of them out and put your widgets in sizers for managing the layout, and you can also use the top-level sizer to set the size of the frame. When you want to show/hide the log then just Show() or Hide() it and then redo the frame.Fit()
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!