Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/linear_creator.py
diff options
context:
space:
mode:
Diffstat (limited to 'tutorius/linear_creator.py')
-rw-r--r--tutorius/linear_creator.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tutorius/linear_creator.py b/tutorius/linear_creator.py
index 91b11f4..71349ed 100644
--- a/tutorius/linear_creator.py
+++ b/tutorius/linear_creator.py
@@ -45,7 +45,7 @@ class LinearCreator(object):
"""
self.current_actions.append(action)
- def event(self, event_filter):
+ def event(self, event):
"""
Adds a transition to another state. When executing this, all the actions
previously called will be bundled in a single state, with the exit
@@ -58,9 +58,8 @@ class LinearCreator(object):
# Set the next state name - there is no way the caller should have
# to deal with that.
next_state_name = "State %d" % (self.nb_state+1)
- event_filter.set_next_state(next_state_name)
state = State(self.state_name, action_list=self.current_actions,
- event_filter_list=[event_filter])
+ event_filter_list=[(event, next_state_name),])
self.state_name = next_state_name
self.nb_state += 1