From c9f5b6ad86fa1e5e0d7cd5a3418188092141f73b Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 20 Mar 2009 04:50:48 +0000 Subject: TutoriusV2 : Adding linear tutorial creator wih basic tests --- (limited to 'src/sugar/tutorius/filters.py') 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 -- cgit v0.9.1