Skip to content

Commit 2e8df7d

Browse files
committed
Added splash screen to let users know the app is loading
1 parent 4fd29b8 commit 2e8df7d

File tree

4 files changed

+87
-0
lines changed

4 files changed

+87
-0
lines changed

cq_editor/main_window.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ def __init__(self, parent=None, filename=None):
134134

135135
self.restoreComponentState()
136136

137+
try:
138+
import pyi_splash
139+
pyi_splash.close()
140+
except ImportError:
141+
pass
142+
137143
def handleEditorVisiblityChange(self, visible):
138144
"""
139145
Does the work required to enable/disable menu items when the Editor visibility is changed.

pyinstaller.spec

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,17 @@ if sys.platform == 'linux':
7171

7272
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
7373

74+
splash = Splash(
75+
'pyinstaller/splash_screen.png',
76+
binaries=a.binaries,
77+
datas=a.datas,
78+
)
79+
7480
exe = EXE(
7581
pyz,
7682
a.scripts,
83+
splash,
84+
splash.binaries,
7785
a.binaries,
7886
a.zipfiles,
7987
a.datas,

pyinstaller/splash_screen.png

16.3 KB
Loading

pyinstaller/splash_screen.svg

Lines changed: 73 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)