mailr13969 - /branches/gui_testing/gui/menu.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 28, 2011 - 19:21:
Author: bugman
Date: Thu Jul 28 19:21:41 2011
New Revision: 13969

URL: http://svn.gna.org/viewcvs/relax?rev=13969&view=rev
Log:
Fix for the split/double help menu entry on Mac OS X.

The SetMenuBar() call happens after all the menus are created.


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=13969&r1=13968&r2=13969&view=diff
==============================================================================
--- branches/gui_testing/gui/menu.py (original)
+++ branches/gui_testing/gui/menu.py Thu Jul 28 19:21:41 2011
@@ -44,9 +44,8 @@
         # Store the args.
         self.gui = gui
 
-        # Create the menu bar GUI item and add it to the main frame.
+        # Create the menu bar GUI item.
         self.menubar = wx.MenuBar()
-        self.gui.SetMenuBar(self.menubar)
 
         # The 'File' menu entries.
         menu = wx.Menu()
@@ -116,6 +115,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 GUI item to the main frame.
+        self.gui.SetMenuBar(self.menubar)
 
         # Menu update.
         self.gui.Bind(wx.EVT_MENU_OPEN, self.update_menus)




Related Messages


Powered by MHonArc, Updated Thu Jul 28 20:20:06 2011