This repository was archived by the owner on Aug 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -289,18 +289,14 @@ def run():
289289 app .setApplicationVersion (__version__ )
290290 app .setAttribute (Qt .AA_DontShowIconsInMenus )
291291
292- # Create the "window" we'll be looking at.
293- editor_window = Window ()
294-
295- def splash_context (app = app , editor_window = editor_window ):
292+ def splash_context ():
296293 """
297294 Function context (to ensure garbage collection) for displaying the
298295 splash screen.
299296 """
300297 # Display a friendly "splash" icon.
301298 splash = AnimatedSplash (load_movie ("splash_screen" ))
302299 splash .show ()
303- app .processEvents ()
304300
305301 # Create a blocking thread upon which to run the StartupWorker and which
306302 # will process the events for animating the splash screen.
@@ -318,11 +314,14 @@ def splash_context(app=app, editor_window=editor_window):
318314 thread .finished .connect (thread .deleteLater )
319315 thread .start ()
320316 initLoop .exec () # start processing the pending StartupWorker.
321- splash .finish ( editor_window )
317+ splash .close ( )
322318 splash .deleteLater ()
323319
324320 splash_context ()
325321
322+ # Create the "window" we'll be looking at.
323+ editor_window = Window ()
324+
326325 @editor_window .load_theme .connect
327326 def load_theme (theme ):
328327 if theme == "contrast" :
Original file line number Diff line number Diff line change @@ -248,9 +248,9 @@ class Win(mock.MagicMock):
248248 assert qa .call_count == 1
249249 # foo.mock_calls are method calls on the object
250250 if hasattr (Qt , "AA_EnableHighDpiScaling" ):
251- assert len (qa .mock_calls ) == 10
252- else :
253251 assert len (qa .mock_calls ) == 9
252+ else :
253+ assert len (qa .mock_calls ) == 8
254254 assert qsp .call_count == 1
255255 assert len (qsp .mock_calls ) == 4
256256 assert ed .call_count == 1
@@ -312,7 +312,7 @@ def start(self, t):
312312 VE , "ensure_and_create"
313313 ):
314314 run ()
315- assert splash .finish .call_count == 1
315+ assert splash .close .call_count == 1
316316
317317
318318def test_excepthook ():
You can’t perform that action at this time.
0 commit comments