Add wx.YieldIfNeeded

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

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()