Set window icon

This commit is contained in:
Fierelier 2021-03-18 17:57:02 +01:00
parent 2c13709075
commit a29d14ea54

View File

@ -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_())