Author: bugman Date: Fri Jul 22 19:51:42 2011 New Revision: 13840 URL: http://svn.gna.org/viewcvs/relax?rev=13840&view=rev Log: The window menu has been disabled on Mac OS X. Modified: branches/gui_testing/gui/menu.py Modified: branches/gui_testing/gui/menu.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/menu.py?rev=13840&r1=13839&r2=13840&view=diff ============================================================================== --- branches/gui_testing/gui/menu.py (original) +++ branches/gui_testing/gui/menu.py Fri Jul 22 19:51:42 2011 @@ -46,7 +46,9 @@ # Create the menu bar GUI item and add it to the main frame. self.menubar = wx.MenuBar() - self.gui.SetMenuBar(self.menubar) + + # Disable the 'Window' menu entry on Mac OS X. + self.menubar.SetAutoWindowMenu(False) # The 'File' menu entries. menu = wx.Menu() @@ -116,6 +118,9 @@ self.gui.Bind(wx.EVT_MENU, self.gui.references, id=42) self.gui.Bind(wx.EVT_MENU, self.gui.about_gui, id=43) self.gui.Bind(wx.EVT_MENU, self.gui.about_relax, id=44) + + # Add the menu bar to the GUI. + self.gui.SetMenuBar(self.menubar) # Menu update. self.gui.Bind(wx.EVT_MENU_OPEN, self.update_menus)