Add Unbind methods that can Disconnect event handlers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-04-27 19:35:49 +00:00
parent 9e4e25d550
commit ded6ea2319
2 changed files with 14 additions and 0 deletions

View File

@@ -106,6 +106,14 @@ public:
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()
event.Unbind(self, id, id2)
}