File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -472,22 +472,15 @@ def vis_run(self, tool=''):
472472 # Ensure assembled runstr is a string, not a QString
473473 runstr = str (runstr )
474474
475+ self .__emitter .status ('Starting visualisation in background shell...' )
476+ self .__emitter .message (runstr , gui = False )
475477 if not os .name == 'nt' :
476478 # run simulation in a background thread
477479 self .__runthread = McRunQThread ()
478480 self .__runthread .cmd = runstr
479481 self .__runthread .cwd = os .path .dirname (self .__instrFile )
480- self .__runthread .finished .connect (lambda : self .__runFinished (self .__runthread .process_returncode ))
481- self .__runthread .thread_exception .connect (handleExceptionMsg )
482- self .__runthread .error .connect (lambda msg : self .__emitter .message (msg , err_msg = True ))
483- self .__runthread .message .connect (lambda msg : self .__emitter .message (msg ))
484482 self .__runthread .start ()
485- self .__emitter .message (runstr , gui = True )
486- self .__emitter .status ('Running visualisation ...' )
487- self .__fireSimStateUpdate ()
488483 else :
489- self .__emitter .message (runstr , gui = True )
490- self .__emitter .status ('Started visualisation in background shell...' )
491484 subprocess .Popen (runstr , shell = True )
492485
493486 def __runFinished (self , process_returncode ):
You can’t perform that action at this time.
0 commit comments