From a29d14ea54b9077090272481e29df3285ba55399 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Thu, 18 Mar 2021 17:57:02 +0100 Subject: [PATCH] Set window icon --- BirdyNet.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BirdyNet.py b/BirdyNet.py index 81874f0..1db60cc 100644 --- a/BirdyNet.py +++ b/BirdyNet.py @@ -19,6 +19,7 @@ sp = pUp(s) # script start import qtpy +import qtpy.QtGui as QtGui from qtpy.QtGui import * from qtpy.QtWidgets import * from qtpy.QtCore import * @@ -145,6 +146,10 @@ def main(): config.read(p(dataDir,"config.ini")) app = QApplication(sys.argv) + try: + app.setWindowIcon(QtGui.QIcon("assets/BirdyNet-XP.ico")) + except Exception as e: + print("Could not set window icon: " +print(e)) window = browserWindow() sys.exit(app.exec_())