Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6326
Modified Files:
resourceEditor.py
Log Message:
Add a handler for mouseDoubleClick - and don't use it.
Don't know why this is needed - but it prevents the problem that all
subsequent events report themselves as coming from the doubleClicked component.
Index: resourceEditor.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/resourceEditor.py,v
retrieving revision 1.219
retrieving revision 1.220
diff -C2 -d -r1.219 -r1.220
*** resourceEditor.py 30 Sep 2004 21:16:24 -0000 1.219
--- resourceEditor.py 13 May 2005 00:16:21 -0000 1.220
***************
*** 436,439 ****
--- 436,446 ----
#print " self.lastPosition", self.lastPosition
+ def on_mouseDoubleClick(self, event):
+ # AGT 2005-05-12 Should be unnecessary - but seems to prevent the problem where a double-click
+ # was causing subsequent GetEventObjects to "stick" on the button
+ ##print "dc", event.GetEventObject().GetName()
+ pass
+
+
def on_mouseDown(self, event):
# KEA 2003-03-23
|