]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_event_ex.py
Add wxSVGFileDC
[wxWidgets.git] / wxPython / src / _event_ex.py
index 70c658a93974973921c87997117b2e3a7e972bb5..0fcb07496a0928b92b7f383638f38d108c614a57 100644 (file)
@@ -23,6 +23,23 @@ 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 _getEvtType(self):
+        """
+        Make it easy to get to the default wxEventType typeID for this
+        event binder.
+        """
+        return self.evtType[0]
+    
+    typeId = property(_getEvtType)
+
     
     def __call__(self, *args):
         """