mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Add wx.YieldIfNeeded
This commit is contained in:
@@ -6274,6 +6274,7 @@
|
||||
"YES_NO":"wx.",
|
||||
"Year":"wx.DateTime.",
|
||||
"Yield":"wx.",
|
||||
"YieldIfNeeded":"wx.",
|
||||
"_":"wx.",
|
||||
"_ScrolledWindowBase":"wx.",
|
||||
"__DECLARE_EVT0":"wx.",
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user