# HG changeset patch # User Thinker K.F. Li # Date 1303639151 -28800 # Node ID 697ebfa9dc47375e504cb4ce61f216b3f1c8b484 # Parent e807ad5aeb91a38b5e02a59dbf12417829cec9f2 Update state and transition from domview diff -r e807ad5aeb91 -r 697ebfa9dc47 pyink/FSM_window.py --- 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):