Skip to content

Commit 7c6e39c

Browse files
committed
icon using add for all gui launchers
1 parent 06b94e7 commit 7c6e39c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

pycompiler_ark.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,12 @@ def launch_bcasl_standalone(workspace_dir: Optional[str] = None) -> int:
437437

438438
app = QApplication(sys.argv)
439439
window = BcaslStandaloneApp(workspace_dir=workspace_dir)
440+
try:
441+
_icon_path = os.path.join(ROOT_DIR, "logo", "logo2.png")
442+
if os.path.isfile(_icon_path):
443+
app.setWindowIcon(QIcon(_icon_path))
444+
except Exception:
445+
pass
440446
window.show()
441447
return app.exec()
442448
except ImportError as e:
@@ -484,7 +490,14 @@ def launch_engines_only_standalone(workspace_dir: Optional[str] = None) -> int:
484490

485491
app = QApplication(sys.argv)
486492
app.setApplicationName("PyCompiler ARK++ Engines")
493+
try:
494+
_icon_path = os.path.join(ROOT_DIR, "logo", "logo2.png")
495+
if os.path.isfile(_icon_path):
496+
app.setWindowIcon(QIcon(_icon_path))
497+
except Exception:
498+
pass
487499
window = EnginesStandaloneGui(workspace_dir=workspace_dir)
500+
488501
window.show()
489502
return app.exec()
490503
except ImportError as e:

0 commit comments

Comments
 (0)