Author: bugman Date: Thu Sep 8 17:38:43 2011 New Revision: 14616 URL: http://svn.gna.org/viewcvs/relax?rev=14616&view=rev Log: The relax GUI no longer starts maximised if debugging is on. 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=14616&r1=14615&r2=14616&view=diff ============================================================================== --- 1.3/gui/relax_gui.py (original) +++ 1.3/gui/relax_gui.py Thu Sep 8 17:38:43 2011 @@ -79,11 +79,17 @@ def __init__(self, parent=None, id=-1, title="", script=None): """Initialise the main relax GUI frame.""" + # The main window style. + style = wx.DEFAULT_FRAME_STYLE + if not status.debug: + style = style | wx.MAXIMIZE + # Execute the base class __init__ method. - super(Main, self).__init__(parent=parent, id=id, title=title, style=wx.DEFAULT_FRAME_STYLE|wx.MAXIMIZE) + super(Main, self).__init__(parent=parent, id=id, title=title, style=style) # Force the main window to start maximised (needed for MS Windows). - self.Maximize() + if not status.debug: + self.Maximize() # Set up some standard interface-wide fonts. font.setup()