Author: bugman Date: Sun May 13 17:28:28 2012 New Revision: 16287 URL: http://svn.gna.org/viewcvs/relax?rev=16287&view=rev Log: Fix for the 'Help->Licence' menu entry. The GPL text from the gpl() function docstring is now printed, as this is no longer a user function. Modified: branches/uf_redesign/gui/menu.py Modified: branches/uf_redesign/gui/menu.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/menu.py?rev=16287&r1=16286&r2=16287&view=diff ============================================================================== --- branches/uf_redesign/gui/menu.py (original) +++ branches/uf_redesign/gui/menu.py Sun May 13 17:28:28 2012 @@ -31,6 +31,7 @@ # relax module imports. from graphics import fetch_icon +from prompt.gpl import gpl from status import Status; status = Status() from user_functions.data import Uf_info; uf_info = Uf_info() @@ -215,8 +216,8 @@ @type event: wx event """ - # Launch the user functions. - uf_store['gpl']() + # Print the GPL to STDOUT. + print(gpl.__doc__) # Show the relax controller. self.gui.show_controller(event) @@ -229,7 +230,7 @@ @type event: wx event """ - # Launch the user functions. + # Launch the user function. uf_store['sys_info']()