Added an Application Icon

Created an added an application icon to the importer window
dev
Peery 1 year ago
parent d78c00ddf4
commit 7fc5bf349c

@ -1,3 +1,6 @@
import os
import logging
from PyQt5.QtGui import QIcon
from PyQt5 import QtWidgets from PyQt5 import QtWidgets
from ArtNet.gui.dialogs.db_connection_dialog.db_connection_dialog import Ui_DBConnection from ArtNet.gui.dialogs.db_connection_dialog.db_connection_dialog import Ui_DBConnection
@ -13,6 +16,11 @@ class DBDialog(QtWidgets.QDialog):
self.ui.buttonBox.accepted.connect(self.getConnectionDetails) self.ui.buttonBox.accepted.connect(self.getConnectionDetails)
if os.path.isfile("./application_icon.png"):
self.setWindowIcon(QIcon("./application_icon.png"))
else:
logging.warning("Didn't find application icon!")
def getConnectionDetails(self): def getConnectionDetails(self):
self.data = dict() self.data = dict()

@ -6,7 +6,7 @@ import re
from PyQt5 import QtWidgets from PyQt5 import QtWidgets
from PyQt5.QtCore import Qt, QSize, QUrl from PyQt5.QtCore import Qt, QSize, QUrl
from PyQt5.QtGui import QPixmap, QResizeEvent, QKeyEvent, QStandardItemModel, QStandardItem, QMovie, QDesktopServices from PyQt5.QtGui import QPixmap, QResizeEvent, QKeyEvent, QStandardItemModel, QStandardItem, QMovie, QDesktopServices, QIcon
from PyQt5 import QtMultimedia from PyQt5 import QtMultimedia
from PyQt5.QtMultimediaWidgets import QVideoWidget from PyQt5.QtMultimediaWidgets import QVideoWidget
@ -97,6 +97,11 @@ class ImporterWindow(ArtnetMainWindow):
self.on_tag_search_change() self.on_tag_search_change()
self.center() self.center()
if os.path.isfile("./application_icon.png"):
self.setWindowIcon(QIcon("./application_icon.png"))
else:
logging.warning("Didn't find application icon!")
def center(self): def center(self):
""" """
Centers the window in the middle of the screen Centers the window in the middle of the screen

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Loading…
Cancel
Save