Author: bugman Date: Wed Sep 14 19:06:41 2011 New Revision: 14643 URL: http://svn.gna.org/viewcvs/relax?rev=14643&view=rev Log: Fix for the Help->Licence menu entry for the new GUI user function design. This additionally opens the relax controller window so the user will see the text. 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=14643&r1=14642&r2=14643&view=diff ============================================================================== --- 1.3/gui/menu.py (original) +++ 1.3/gui/menu.py Wed Sep 14 19:06:41 2011 @@ -135,7 +135,7 @@ self.gui.Bind(wx.EVT_MENU, self.gui.relax_manual, id=self.MENU_HELP_MANUAL) self.gui.Bind(wx.EVT_MENU, self.gui.contact_relax, id=self.MENU_HELP_MAIL) self.gui.Bind(wx.EVT_MENU, self.gui.references, id=self.MENU_HELP_REFS) - self.gui.Bind(wx.EVT_MENU, self.gui.user_functions.gpl.run, id=self.MENU_HELP_GPL) + self.gui.Bind(wx.EVT_MENU, self._licence, id=self.MENU_HELP_GPL) self.gui.Bind(wx.EVT_MENU, self.gui.about_gui, id=self.MENU_HELP_ABOUT_GUI) self.gui.Bind(wx.EVT_MENU, self.gui.about_relax, id=self.MENU_HELP_ABOUT) @@ -179,6 +179,20 @@ # Append the menu item. menu.AppendItem(menu_item) + + + def _licence(self, event): + """Show the GPL licence. + + @param event: The wx event. + @type event: wx event + """ + + # Launch the user functions. + user_functions.gpl.run() + + # Show the relax controller. + self.gui.show_controller(event) def _user_functions(self):