X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ded6ea2319707a84da85043a2c5b1dcd6750be6c..42f8298f6f42d5d63bb3caf65682b7d9d9f8b702:/wxPython/src/_event_ex.py?ds=sidebyside diff --git a/wxPython/src/_event_ex.py b/wxPython/src/_event_ex.py index 03663716d2..622bed6de9 100644 --- a/wxPython/src/_event_ex.py +++ b/wxPython/src/_event_ex.py @@ -23,12 +23,14 @@ class PyEventBinder(object): for et in self.evtType: target.Connect(id1, id2, et, function) + def Unbind(self, target, id1, id2): """Remove an event binding.""" success = 0 for et in self.evtType: success += target.Disconnect(id1, id2, et) return success != 0 + def __call__(self, *args): """