Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/tutorius/filters.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar/tutorius/filters.py')
-rw-r--r--src/sugar/tutorius/filters.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sugar/tutorius/filters.py b/src/sugar/tutorius/filters.py
index 4c04cf6..3acbb36 100644
--- a/src/sugar/tutorius/filters.py
+++ b/src/sugar/tutorius/filters.py
@@ -37,6 +37,13 @@ class EventFilter(object):
"""
return self._next_state
+ def set_next_state(self, new_next_name):
+ """
+ Setter for the next state. Should only be used during construction of
+ the event_fitler, not while the tutorial is running.
+ """
+ self._next_state = new_next_name
+
def install_handlers(self, callback, **kwargs):
"""
install_handlers is called for eventfilters to setup all