&wxPyCallback::EventThunker);
}
else {
- PyErr_SetString(PyExc_TypeError, "Expected callable object or None.");
+ wxPyBLOCK_THREADS(
+ PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
}
}
id = source.GetId()
event.Bind(self, id, id2, handler)
+ def Unbind(self, event, source=None, id=wx.ID_ANY, id2=wx.ID_ANY):
+ """
+ Disconencts the event handler binding for event from self.
+ Returns True if successful.
+ """
+ if source is not None:
+ id = source.GetId()
+ return event.Unbind(self, id, id2)
}