From 7ae393fc183b822a10e4a3ecf2b82f9d5e9245ee Mon Sep 17 00:00:00 2001 From: Ahmet Can Solak Date: Wed, 24 Nov 2021 19:38:08 -0800 Subject: [PATCH] initial commit, fix implemented (#56) --- build/osx/aydin.spec | 2 +- build/osx/runtimehooks/hook-splash.py | 21 ++++++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/build/osx/aydin.spec b/build/osx/aydin.spec index ca14846d..ca08041c 100644 --- a/build/osx/aydin.spec +++ b/build/osx/aydin.spec @@ -78,7 +78,7 @@ pyz = PYZ(a.pure) # we actually dont need (e.g. wxPython) import re -reg = re.compile(".*(PyQt4|k_means|mpl-data|tcl|zmq|QtWebKit|QtQuick|wxPython).*") +reg = re.compile(".*(PyQt4|k_means|mpl-data|zmq|QtWebKit|QtQuick|wxPython).*") # from pprint import pprint # pprint(a.binaries) diff --git a/build/osx/runtimehooks/hook-splash.py b/build/osx/runtimehooks/hook-splash.py index 28546db5..66622bb5 100644 --- a/build/osx/runtimehooks/hook-splash.py +++ b/build/osx/runtimehooks/hook-splash.py @@ -8,16 +8,19 @@ from PIL import Image +try: + img = Image.open(absPath("biohub_logo.png")) + fig = plt.figure() + man = plt.get_current_fig_manager() + man.canvas.set_window_title("Aydin Studio - image denoising, but chill...") + imgplot = plt.imshow(img) -img = Image.open(absPath("biohub_logo.png")) -fig = plt.figure() -man = plt.get_current_fig_manager() -man.canvas.set_window_title("Aydin Studio - image denoising, but chill...") -imgplot = plt.imshow(img) + plt.axis('off') -plt.axis('off') + plt.show(block=False) + plt.pause(4) + plt.close() -plt.show(block=False) -plt.pause(4) -plt.close() +except Exception as ex: + print("no splash screen")