mailr13203 - /branches/gui_testing/gui/wizard.py


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

Header


Content

Posted by edward on June 23, 2011 - 20:59:
Author: bugman
Date: Thu Jun 23 20:59:29 2011
New Revision: 13203

URL: http://svn.gna.org/viewcvs/relax?rev=13203&view=rev
Log:
The on_execute() wizard page method is no longer compulsory.

A page can simply store data and doesn't need an execution action.


Modified:
    branches/gui_testing/gui/wizard.py

Modified: branches/gui_testing/gui/wizard.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/wizard.py?rev=13203&r1=13202&r2=13203&view=diff
==============================================================================
--- branches/gui_testing/gui/wizard.py (original)
+++ branches/gui_testing/gui/wizard.py Thu Jun 23 20:59:29 2011
@@ -84,7 +84,7 @@
 class Wiz_page(wx.Panel):
     """The wizard pages to be placed inside the wizard.
 
-    To inherit from this class, you must supply minimally the add_contents() 
and on_execute() methods.  The add_contents() method should build the 
specific GUI elements, and the on_execute() method is called when clicking on 
the apply, ok, or finish buttons.  The following methods are also designed to 
be overwritten:
+    To inherit from this class, you must minimally supply the add_contents() 
method.  This method should build the specific GUI elements.  The following 
methods are also designed to be overwritten:
 
         - add_artwork(), this builds the left hand artwork section of the 
page.
         - add_contents(), this builds the right hand section of the page.
@@ -635,9 +635,6 @@
         This method is called when terminating the wizard or hitting the 
apply button. 
         """
 
-        # This must be supplied.
-        raise RelaxImplementError
-
 
     def on_next(self):
         """To be over-ridden if an action is to be performed just before 
moving to the next page.




Related Messages


Powered by MHonArc, Updated Thu Jun 23 21:20:02 2011