mailr14622 - /1.3/gui/user_functions/base.py


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

Header


Content

Posted by edward on September 09, 2011 - 16:24:
Author: bugman
Date: Fri Sep  9 16:24:16 2011
New Revision: 14622

URL: http://svn.gna.org/viewcvs/relax?rev=14622&view=rev
Log:
The create_wizard() method now returns the user function page.

This will be needed as sometimes the fields have to be changed.


Modified:
    1.3/gui/user_functions/base.py

Modified: 1.3/gui/user_functions/base.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/user_functions/base.py?rev=14622&r1=14621&r2=14622&view=diff
==============================================================================
--- 1.3/gui/user_functions/base.py (original)
+++ 1.3/gui/user_functions/base.py Fri Sep  9 16:24:16 2011
@@ -67,8 +67,8 @@
         @type uf_page:          class
         @keyword apply_button:  A flag which if true will show the apply 
button for that page.  This will be passed to the wizard's add_page() method.
         @type apply_button:     bool
-        @return:                The wizard dialog.
-        @rtype:                 gui.wizard.Wiz_window instance
+        @return:                The wizard dialog and wizard page.
+        @rtype:                 gui.wizard.Wiz_window instance and wizard 
page instance
         """
 
         # Split the name.
@@ -87,8 +87,8 @@
         page = uf_page(wizard)
         wizard.add_page(page, apply_button=apply_button)
 
-        # Return the wizard.
-        return wizard
+        # Return the wizard and the page.
+        return wizard, page
 
 
     def get_title(self, base=None, fn=None):




Related Messages


Powered by MHonArc, Updated Fri Sep 09 16:40:01 2011