wizards/source/scriptforge/SF_PythonHelper.xba | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 4c514dc78b68fc9c69a8425ee93d199bef1deac8 Author: Jean-Pierre Ledure <[email protected]> AuthorDate: Wed Aug 7 16:45:18 2024 +0200 Commit: Jean-Pierre Ledure <[email protected]> CommitDate: Wed Aug 7 18:03:31 2024 +0200 ScriptForge - Optimize process synchro between Python & Basic Tests with non-modal dialogs and sleeping (time.sleep) Python processes show a more fluid reactivity when a Wait 0 statement is inserted before returning to Python, and this at a minimal cost. Change-Id: I6d69d0e8f2970c7e4bf440fdfa11f2ad7593ac15 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171599 Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <[email protected]> diff --git a/wizards/source/scriptforge/SF_PythonHelper.xba b/wizards/source/scriptforge/SF_PythonHelper.xba index bcb0f8a61e75..b0bf9e93ceef 100644 --- a/wizards/source/scriptforge/SF_PythonHelper.xba +++ b/wizards/source/scriptforge/SF_PythonHelper.xba @@ -965,6 +965,10 @@ Try: vReturnArray(1) = VarType(vReturn) End If + ' Tests with non-modal dialogs and sleeping (time.sleep) Python processes show + ' a more fluid reactivity when next statement is present, at a minimal cost. + Wait 0 + _PythonDispatcher = vReturnArray Finally:
