dabo Commit
Revision 1589
Date: 2005-11-27 21:09:17 -0800 (Sun, 27 Nov 2005)
Author: paul
Changed:
U trunk/dabo/lib/eventMixin.py
Log:
The last change inadvertantly made it possible to double up event bindings.
This fixes that.
Diff:
Modified: trunk/dabo/lib/eventMixin.py
===================================================================
--- trunk/dabo/lib/eventMixin.py 2005-11-28 04:55:09 UTC (rev 1588)
+++ trunk/dabo/lib/eventMixin.py 2005-11-28 05:09:17 UTC (rev 1589)
@@ -18,10 +18,10 @@
"""Bind a dEvent to a callback function.
"""
eb = self._EventBindings
- if (eventClass, function) not in eb:
+ if (eventClass, function) not in [(b[0], b[1]) for b in eb]:
eb.append((eventClass, function, _auto))
-
+
def bindEvents(self, bindings):
"""Bind a sequence of [dEvent, callback] lists.
"""
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev