Compare commits

..

2 Commits

Author SHA1 Message Date
e379b4a7e2 properly add icon - and fix main_gui size 2025-04-10 14:56:16 +01:00
5f9017b625 add application icon 2025-04-10 14:09:24 +01:00
6 changed files with 12 additions and 7 deletions

View File

@ -5,7 +5,7 @@ a = Analysis(
['src\\main.py'],
pathex=[],
binaries=[],
datas=[('gui/*.ui', 'gui')],
datas=[('gui/*.ui', 'gui'), ('icon2.ico', '.')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
@ -32,6 +32,7 @@ exe = EXE(
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon="icon2.ico"
)
coll = COLLECT(
exe,

View File

@ -7,19 +7,19 @@
<x>0</x>
<y>0</y>
<width>420</width>
<height>228</height>
<height>240</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>420</width>
<height>228</height>
<height>240</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>420</width>
<height>228</height>
<height>240</height>
</size>
</property>
<property name="windowTitle">
@ -35,7 +35,7 @@
<x>10</x>
<y>0</y>
<width>401</width>
<height>176</height>
<height>184</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">

BIN
icon2.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -1,4 +1,4 @@
from PyQt6.QtGui import QIntValidator
from PyQt6.QtGui import QIntValidator, QIcon
from PyQt6.QtWidgets import QMainWindow, QWidget
from PyQt6 import uic
@ -12,6 +12,7 @@ class SIPPCompare(QMainWindow):
super().__init__()
# Import Qt Designer UI XML file
uic.loadUi(resource_finder.get_res_path("gui/main_gui.ui"), self)
self.setWindowIcon(QIcon(resource_finder.get_res_path("icon2.ico")))
# Initialise class variables
# Inputs

View File

@ -1,3 +1,4 @@
from PyQt6.QtGui import QIcon
from PyQt6.QtWidgets import QWidget
from PyQt6 import uic
@ -12,6 +13,7 @@ class OutputWindow(QWidget):
super().__init__()
# Import Qt Designer UI XML file
uic.loadUi(resource_finder.get_res_path("gui/output_window.ui"), self)
self.setWindowIcon(QIcon(resource_finder.get_res_path("icon2.ico")))
# Initialise class variables
self.results_str = ""

View File

@ -1,5 +1,5 @@
from PyQt6.QtCore import QRegularExpression
from PyQt6.QtGui import QRegularExpressionValidator, QFont
from PyQt6.QtGui import QRegularExpressionValidator, QFont, QIcon
from PyQt6.QtWidgets import QWidget, QLabel
from PyQt6 import uic
@ -13,6 +13,7 @@ class PlatformEdit(QWidget):
super().__init__()
# Import Qt Designer UI XML file
uic.loadUi(resource_finder.get_res_path("gui/platform_edit.ui"), self)
self.setWindowIcon(QIcon(resource_finder.get_res_path("icon2.ico")))
# Initialise class variables
# Create main window object, passing this instance as param