File tree Expand file tree Collapse file tree
Plugins_SDK/GeneralContext Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,8 +182,11 @@ def __init__(
182182 self ._canceled = False
183183 self ._dlg = None
184184 self ._last_pct = - 1
185- if _QtW is not None :
185+ if _QtW is not None and not _is_noninteractive () :
186186 try :
187+ app = _QtW .QApplication .instance ()
188+ if app is None :
189+ raise RuntimeError ("No Qt application" )
187190 parent = _qt_active_parent ()
188191 dlg = _QtW .QProgressDialog (parent )
189192 dlg .setWindowTitle (self ._title or "Progression" )
Original file line number Diff line number Diff line change 55import sys
66from pathlib import Path
77
8+ # Force interactive GUI mode for BCASL-only runs
9+ os .environ ["PYCOMPILER_NONINTERACTIVE" ] = "0"
10+
811from PySide6 .QtWidgets import QApplication
912from PySide6 .QtGui import QIcon
1013from PySide6 .QtCore import QSettings
Original file line number Diff line number Diff line change 6363except Exception :
6464 pass
6565
66+ # Force interactive GUI mode for all runs launched via this entry point
67+ os .environ ["PYCOMPILER_NONINTERACTIVE" ] = "0"
68+
6669# DPI/scaling hints
6770os .environ .setdefault ("QT_AUTO_SCREEN_SCALE_FACTOR" , "1" )
6871os .environ .setdefault ("QT_ENABLE_HIGHDPI_SCALING" , "1" )
You can’t perform that action at this time.
0 commit comments