changeset 1493:b0e113605382

Add comment
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 02 May 2011 23:26:32 +0800
parents 6616530c4180
children ac390af12152
files pyink/FSM_window.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/FSM_window.py	Mon May 02 23:23:06 2011 +0800
+++ b/pyink/FSM_window.py	Mon May 02 23:26:32 2011 +0800
@@ -934,14 +934,16 @@
     def _select_transition(self, trn):
         def cleaner():
             trn.hide_control_points()
-            del self._hint_transition
+            del self._hint_transition # enable _hint_transition
             pass
+        
+        self._hint_transition = lambda *args: None # disable _hint_transition
+        
         self._clean_select()
         self._selected_cleaner = cleaner
         trn.show_control_points()
         
         trn.stop_hint()
-        self._hint_transition = lambda *args: None
         window = self._window
         window.ungrab_bg()