# HG changeset patch # User Thinker K.F. Li # Date 1304158604 -28800 # Node ID 1e607ce4bf7d42530a442b6875bd26c46821ef99 # Parent 757c5626d15db85c7520e4f26b737bb7a49a0f9a Rename FSM_window._grab_hdl to _grab_mouse_hdl diff -r 757c5626d15d -r 1e607ce4bf7d pyink/FSM_window.py --- a/pyink/FSM_window.py Sat Apr 30 15:22:45 2011 +0800 +++ b/pyink/FSM_window.py Sat Apr 30 18:16:44 2011 +0800 @@ -702,7 +702,7 @@ width = 1024 height = 768 - _grab_hdl = None + _grab_mouse_hdl = None _bg_hdl = None _leave_mode_cb = None @@ -967,20 +967,20 @@ pass def grab_mouse(self, callback): - assert self._grab_hdl is None + assert self._grab_mouse_hdl is None root = self._root() root.setAttribute('inkscape:groupmode', '') - self._grab_hdl = root.spitem.connect('mouse-event', callback) + self._grab_mouse_hdl = root.spitem.connect('mouse-event', callback) pass def ungrab_mouse(self): - if not self._grab_hdl: + if not self._grab_mouse_hdl: return root = self._root() - root.spitem.disconnect(self._grab_hdl) - self._grab_hdl = None + root.spitem.disconnect(self._grab_mouse_hdl) + self._grab_mouse_hdl = None root.setAttribute('inkscape:groupmode', 'layer') pass