Author: bugman Date: Tue Jun 14 12:56:01 2011 New Revision: 12982 URL: http://svn.gna.org/viewcvs/relax?rev=12982&view=rev Log: Shifted the main GUI window layout to the start of the __init__() method. This is to help with the sizing events. Modified: 1.3/gui/relax_gui.py Modified: 1.3/gui/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/relax_gui.py?rev=12982&r1=12981&r2=12982&view=diff ============================================================================== --- 1.3/gui/relax_gui.py (original) +++ 1.3/gui/relax_gui.py Tue Jun 14 12:56:01 2011 @@ -89,6 +89,12 @@ # Execute the base class __init__ method. super(Main, self).__init__(parent=parent, id=id, title=title, style=style) + # Set up the frame. + self.Layout() + self.SetSize((self.min_width, self.min_height)) + self.SetMinSize((self.min_width, self.min_height)) + self.Centre() + # The analysis frame object storage. self.analysis_frames = [] @@ -154,12 +160,6 @@ for i in range(len(frame_1_statusbar_fields)): self.frame_1_statusbar.SetStatusText(frame_1_statusbar_fields[i], i) - # Set up the frame. - self.Layout() - self.SetSize((self.min_width, self.min_height)) - self.SetMinSize((self.min_width, self.min_height)) - self.Centre() - # Close Box event self.Bind(wx.EVT_CLOSE, self.exit_gui)