Add wx.YieldIfNeeded

This commit is contained in:
Robin Dunn
2017-04-12 10:44:54 -07:00
parent e8306ca7e0
commit a79cd3254c
2 changed files with 5 additions and 1 deletions

View File

@@ -6274,6 +6274,7 @@
"YES_NO":"wx.",
"Year":"wx.DateTime.",
"Yield":"wx.",
"YieldIfNeeded":"wx.",
"_":"wx.",
"_ScrolledWindowBase":"wx.",
"__DECLARE_EVT0":"wx.",

View File

@@ -249,6 +249,10 @@ def run():
module.find('wxYield').releaseGIL()
module.find('wxSafeYield').releaseGIL()
module.addPyFunction('YieldIfNeeded', '()',
doc="Convenience function for wx.GetApp().Yield(True)",
body="return wx.GetApp().Yield(True)")
#-------------------------------------------------------
# Now add extractor objects for the main App class as a Python class,
@@ -526,7 +530,6 @@ def run():
])
module.find('wxInitialize').ignore()
module.find('wxUninitialize').ignore()