Hello,
I found a bug in UnBindAll method. It seems that it has suffered
bit-rot.
I have attached a patch which I believe solves this problem.
Tim 'Mithro' Ansell
diff --git a/extra/wxFloatCanvas/FloatCanvas.py b/extra/wxFloatCanvas/FloatCanvas.py
index 4a07bbd..5e4e4b3 100644
--- a/extra/wxFloatCanvas/FloatCanvas.py
+++ b/extra/wxFloatCanvas/FloatCanvas.py
@@ -256,10 +256,10 @@ class DrawObject:
def UnBindAll(self):
## fixme: this only removes one from each list, there could be more.
if self._Canvas.HitDict:
- for List in self._Canvas.HitDict.itervalues():
+ for Event in self._Canvas.HitDict.itervalues():
try:
- List.remove(self)
- except ValueError:
+ del Event[self.HitColor]
+ except KeyError:
pass
self.HitAble = False
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas