changeset 1474:697ebfa9dc47

Update state and transition from domview
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 24 Apr 2011 17:59:11 +0800
parents e807ad5aeb91
children 8c6078c17f2d
files pyink/FSM_window.py
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/FSM_window.py	Sun Apr 24 15:54:11 2011 +0800
+++ b/pyink/FSM_window.py	Sun Apr 24 17:59:11 2011 +0800
@@ -139,6 +139,13 @@
         parent = trn_g.parent()
         parent.removeChild(trn_g)
         pass
+
+    def update(self):
+        path = self.path
+        arrow_node = self._arrow_node
+        path_node = self._path_node
+        self._update_graph(path, arrow_node, path_node)
+        pass
     pass
 
 class FSM_state(object):
@@ -244,6 +251,17 @@
         parent = state_g.parent()
         parent.removeChild(state_g)
         pass
+
+    def update(self):
+        text_node = self._text_node
+        text_content = self._text_content
+        circle_node = self._circle_node
+        state_name = self.state_name
+        r = self.r
+        x, y = self.xy
+        self._update_graph(text_node, text_content, circle_node,
+                           r, x, y)
+        pass
     pass
 
 class FSM_window(FSM_window_base):