Added typeId property

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-01-12 18:38:15 +00:00
parent 156d7d8626
commit d576c660f7
2 changed files with 29 additions and 0 deletions

View File

@@ -31,6 +31,15 @@ class PyEventBinder(object):
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):
"""