mailr13618 - /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 July 14, 2011 - 15:03:
Author: bugman
Date: Thu Jul 14 15:03:38 2011
New Revision: 13618

URL: http://svn.gna.org/viewcvs/relax?rev=13618&view=rev
Log:
Created the wizard set_seq_next_fn() method for supplying a function to 
determine which page comes next.


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=13618&r1=13617&r2=13618&view=diff
==============================================================================
--- branches/gui_testing/gui/wizard.py (original)
+++ branches/gui_testing/gui/wizard.py Thu Jul 14 15:03:38 2011
@@ -1287,3 +1287,16 @@
         else:
             # Show the wizard.
             self.Show()
+
+
+    def set_seq_next_fn(self, index, fn):
+        """A user specified function for non-linear page changing.
+
+        @param index:   The index of the page the function should be 
associated with.
+        @type index:    int
+        @param fn:      The function for determining the page after the 
current.  This function should return the index of the next page.
+        @type fn:       func or method.
+        """
+
+        # Store the function.
+        self._seq_fn_list[index] = fn




Related Messages


Powered by MHonArc, Updated Thu Jul 14 15:40:02 2011