From 97e981d9008648a36c82bf8c044d1d15811365cf Mon Sep 17 00:00:00 2001 From: Juhani Numminen <juhaninumminen0@gmail.com> Date: Mon, 12 Oct 2020 21:25:19 +0300 Subject: [PATCH] macOS: ensure the application window is shown py2app's "argv_emulation" feature prevents the Tkinter window from being shown when PySolFC.app is launched. This did not affect launching pysol.py using Terminal on macOS. Solution found here: https://stackoverflow.com/questions/12992316/tkinter-py2app-created-application-doesnt-show-window-on-initial-launch --- setup_osx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup_osx.py b/setup_osx.py index 1abfee8e..e57f6e31 100644 --- a/setup_osx.py +++ b/setup_osx.py @@ -56,7 +56,8 @@ DATA_FILES = ['docs', 'data', 'locale', 'scripts', 'COPYING', 'README.md', ] + SOLVER RESOURCES = [] FRAMEWORKS = [SOLVER_LIB_PATH] if SOLVER_LIB_PATH else [] -OPTIONS = dict(argv_emulation=True, +# with argv_emulation=True, the app window is not shown when launched +OPTIONS = dict(argv_emulation=False, plist=PLIST, iconfile=ICON_FILE, resources=RESOURCES,