mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
fix assert in Bind to allow None for the handler.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -311,7 +311,7 @@ def run():
|
||||
""",
|
||||
body="""\
|
||||
assert isinstance(event, wx.PyEventBinder)
|
||||
assert callable(handler)
|
||||
assert callable(handler) or handler is None
|
||||
assert source is None or hasattr(source, 'GetId')
|
||||
if source is not None:
|
||||
id = source.GetId()
|
||||
|
||||
Reference in New Issue
Block a user