Author: bugman Date: Fri Sep 2 16:08:36 2011 New Revision: 14579 URL: http://svn.gna.org/viewcvs/relax?rev=14579&view=rev Log: Bug fix for the test suite under Mac OS X - the GUI's SetMenuBar method is only called if status.show_gui is set. This prevents the menu bar from starting when running the GUI tests. Modified: 1.3/gui/menu.py Modified: 1.3/gui/menu.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/menu.py?rev=14579&r1=14578&r2=14579&view=diff ============================================================================== --- 1.3/gui/menu.py (original) +++ 1.3/gui/menu.py Fri Sep 2 16:08:36 2011 @@ -25,7 +25,7 @@ """Module for the main relax menu bar.""" # relax module imports. -from status import Status +from status import Status; status = Status() # Python module imports. import wx @@ -139,7 +139,8 @@ self.gui.Bind(wx.EVT_MENU, self.gui.about_relax, id=self.MENU_HELP_ABOUT) # Add the menu bar GUI item to the main frame. - self.gui.SetMenuBar(self.menubar) + if status.show_gui: + self.gui.SetMenuBar(self.menubar) # Menu update. self.gui.Bind(wx.EVT_MENU_OPEN, self.update_menus)