Pamhyr2: Add new logo.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-03-27 16:14:52 +01:00
1 parent e350b7d8f5
commit 48e010f195
5 files changed
+33 -8

No files matched your search

+10 -1
View File
@@ -28,7 +28,7 @@ from tools import logger_exception
from PyQt5 import QtGui
from PyQt5.QtGui import (
QKeySequence, QDesktopServices,
QKeySequence, QDesktopServices, QIcon,
)
from PyQt5.QtCore import (
@@ -333,6 +333,15 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
self.update_enable_action()
# self.showMaximized()
image = os.path.abspath(
os.path.join(
os.path.dirname(__file__),
"ui", "ressources",
"Pamhyr2_logo.png"
)
)
self.setWindowIcon(QIcon(image))
def set_debug_lvl(self, debug=True):
if debug:
logger.setLevel(logging.DEBUG)