Windows: Change release icons and logos path to '_internal/'.

This commit is contained in:
parouby committed 2025-05-05 16:45:09 +02:00
1 parent fea4957f61
commit 1e8925fbb3
7 files changed
+47 -33

No files matched your search

+15 -11
View File
@@ -27,20 +27,24 @@ import os
class Logos():
def __init__(self):
self.logo_AcouSed = os.path.join('logos', "AcouSed.png")
def path_logo(icon):
return os.path.join(
os.path.dirname(__file__), "..", "logos", icon
)
self.logo_INRAE = os.path.join('logos', "BlocMarque-INRAE-Inter.jpg")
self.logo_AcouSed = path_logo("AcouSed.png")
self.logo_OSR = os.path.join('logos', "OSR.png")
self.logo_europe = os.path.join('logos', "Europe.png")
self.logo_saone_rhone = os.path.join('logos', "plan_Rhone_Saone.png")
self.logo_carnot = os.path.join('logos', "Carnot_EE.png")
self.logo_INRAE = path_logo("BlocMarque-INRAE-Inter.jpg")
self.logo_CNR = os.path.join('logos', "CNR.png")
self.logo_EDF = os.path.join('logos', "EDF.png")
self.logo_Ubertone = os.path.join('logos', "Ubertone.jpg")
self.logo_OSR = path_logo("OSR.png")
self.logo_europe = path_logo("Europe.png")
self.logo_saone_rhone = path_logo("plan_Rhone_Saone.png")
self.logo_carnot = path_logo("Carnot_EE.png")
self.logo_CNR = path_logo("CNR.png")
self.logo_EDF = path_logo("EDF.png")
self.logo_Ubertone = path_logo("Ubertone.jpg")
logos_inst = Logos()
@@ -291,7 +295,7 @@ class Authors(QDialog):
self.gridLayout.addWidget(self.label_brahim, 4, 0, 1, 1)
self.label_PA = QLabel()
self.label_PA.setText("TECC company (< a href = https://parouby.fr/ > https://parouby.fr/ </a>) was involved in 2025 to improve program architecture.")
self.label_PA.setText("TECC company (< a href = https://parouby.fr/ > https://parouby.fr/ </a>) was involved in 2025 to debugging the program.")
self.gridLayout.addWidget(self.label_PA, 5, 0, 1, 1)
+1 -1
View File
@@ -718,7 +718,7 @@ class AcousticDataTab(QWidget):
def _setup_icons(self):
def path_icon(icon):
return os.path.join(
"icons", icon
os.path.dirname(__file__), "..", "icons", icon
)
self.icon_folder = QIcon(path_icon("folder.png"))
+3 -1
View File
@@ -69,7 +69,9 @@ class AcousticInversionTab(QWidget):
self._setup_connections()
def _path_icon(self, icon):
return os.path.join("icons", icon)
return os.path.join(
os.path.dirname(__file__), "..", "icons", icon
)
def _setup_icons(self):
self.icon_folder = QIcon(self._path_icon("folder.png"))
+9 -4
View File
@@ -132,28 +132,33 @@ class Ui_MainWindow(object):
self.toolBar.setObjectName("toolBar")
self.mainwindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
def path_icon(icon):
return os.path.join(
os.path.dirname(__file__), "..", "icons", icon
)
self.actionOpen = QtWidgets.QAction(self.mainwindow)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap("icons/icon_folder.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon1.addPixmap(QtGui.QPixmap(path_icon("icon_folder.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionOpen.setIcon(icon1)
self.actionOpen.setObjectName("actionOpen")
self.actionSave = QtWidgets.QAction(self.mainwindow)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap("icons/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon2.addPixmap(QtGui.QPixmap(path_icon("save.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionSave.setIcon(icon2)
self.actionSave.setObjectName("actionSave")
self.actionEnglish = QtWidgets.QAction(self.mainwindow)
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap("icons/en.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon6.addPixmap(QtGui.QPixmap(path_icon("en.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionEnglish.setIcon(icon6)
self.actionEnglish.setObjectName("actionEnglish")
self.actionEnglish.setEnabled(False)
self.actionFrench = QtWidgets.QAction(self.mainwindow)
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap("icons/fr.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon7.addPixmap(QtGui.QPixmap(path_icon("fr.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionFrench.setIcon(icon7)
self.actionFrench.setObjectName("actionFrench")
self.actionFrench.setEnabled(False)
+3 -1
View File
@@ -63,7 +63,9 @@ class SampleDataTab(QWidget):
def __init__(self, widget_tab):
super().__init__()
icon_folder = QIcon(os.path.join("icons", "folder.png"))
icon_folder = QIcon(os.path.join(
os.path.dirname(__file__), "..", "icons", "folder.png"
))
self._setup_attrs()
### --- General layout of widgets ---
+1 -1
View File
@@ -498,7 +498,7 @@ class SignalProcessingTab(QWidget):
def _setup_icons(self):
def path_icon(icon):
return os.path.join(
"icons", icon
os.path.dirname(__file__), "..", "icons", icon
)
self.icon_folder = QIcon(path_icon("folder.png"))