improved assert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -102,7 +102,7 @@ def CallAfter(callable, *args, **kw):
|
||||
:see: `wx.FutureCall`
|
||||
"""
|
||||
app = wx.GetApp()
|
||||
assert app, 'No wxApp created yet'
|
||||
assert app is not None, 'No wx.App created yet'
|
||||
|
||||
global _wxPyCallAfterId
|
||||
if _wxPyCallAfterId is None:
|
||||
|
Reference in New Issue
Block a user