MainWindow: Minor change.

mesh
Pierre-Antoine Rouby 2023-03-06 14:00:39 +01:00
parent 0e8b8c5c7a
commit 524868dc34
3 changed files with 33 additions and 29 deletions

View File

@ -20,7 +20,7 @@ class ApplicationWindow(QMainWindow):
def set_icon(self): def set_icon(self):
""" """
Returns: Add icon to application window Add icon to application window
""" """
icon = QtGui.QIcon() icon = QtGui.QIcon()
_path= os.path.join(os.path.dirname(__file__), "ui", "resources", "M_icon.png") _path= os.path.join(os.path.dirname(__file__), "ui", "resources", "M_icon.png")

View File

@ -59,7 +59,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>850</width> <width>850</width>
<height>20</height> <height>23</height>
</rect> </rect>
</property> </property>
<property name="font"> <property name="font">
@ -255,36 +255,27 @@
</attribute> </attribute>
<addaction name="actionOuvrir_une_tude"/> <addaction name="actionOuvrir_une_tude"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="separator"/>
<addaction name="actionenregistrer_etude_en_cours"/> <addaction name="actionenregistrer_etude_en_cours"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="separator"/>
<addaction name="actionfermer_etude_en_cours"/> <addaction name="actionfermer_etude_en_cours"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="separator"/>
<addaction name="actionquitter_application"/> <addaction name="actionquitter_application"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="separator"/>
<addaction name="actionlancer_solveur"/> <addaction name="actionlancer_solveur"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="separator"/>
<addaction name="actioninterrompt_simulation_en_cours"/> <addaction name="actioninterrompt_simulation_en_cours"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="separator"/>
<addaction name="actionafficher_listings_simulation"/> <addaction name="actionafficher_listings_simulation"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionlancer_mailleur_externe"/>
<addaction name="separator"/>
<addaction name="separator"/>
<addaction name="actionReseau"/> <addaction name="actionReseau"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="separator"/>
<addaction name="actionGeometrie"/> <addaction name="actionGeometrie"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="separator"/>
<addaction name="actionMaillage"/> <addaction name="actionMaillage"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionlancer_mailleur_externe"/>
<addaction name="separator"/>
</widget> </widget>
<widget class="QToolBar" name="toolBar_2"> <widget class="QToolBar" name="toolBar_2">
<property name="font"> <property name="font">
@ -322,6 +313,10 @@
<property name="checkable"> <property name="checkable">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="icon">
<iconset>
<normaloff>ressources/edit.png</normaloff>ressources/edit.png</iconset>
</property>
<property name="text"> <property name="text">
<string>Nouvelle étude MAGE</string> <string>Nouvelle étude MAGE</string>
</property> </property>
@ -335,7 +330,7 @@
<action name="actionOuvrir_une_tude"> <action name="actionOuvrir_une_tude">
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normaloff>../ressources/menu/open.png</normaloff>../ressources/menu/open.png</iconset> <normaloff>ressources/open.png</normaloff>ressources/open.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Ouvrir une étude</string> <string>Ouvrir une étude</string>
@ -347,6 +342,11 @@
</property> </property>
</action> </action>
<action name="actionOuvrir_une_tude_2"> <action name="actionOuvrir_une_tude_2">
<property name="icon">
<iconset>
<normalon>ressources/open.png</normalon>
</iconset>
</property>
<property name="text"> <property name="text">
<string>Ouvrir une étude</string> <string>Ouvrir une étude</string>
</property> </property>
@ -380,20 +380,24 @@
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="icon">
<iconset>
<normaloff>../ressources/menu/save.png</normaloff>../ressources/menu/save.png</iconset>
</property>
<property name="text"> <property name="text">
<string>Enregistrer le maillage</string> <string>Enregistrer le maillage</string>
</property> </property>
</action> </action>
<action name="actionEnregistrer_2"> <action name="actionEnregistrer_2">
<property name="icon">
<iconset>
<normaloff>ressources/gtk-save.png</normaloff>ressources/gtk-save.png</iconset>
</property>
<property name="text"> <property name="text">
<string>Enregistrer</string> <string>Enregistrer</string>
</property> </property>
</action> </action>
<action name="actionEnregistrer_sous"> <action name="actionEnregistrer_sous">
<property name="icon">
<iconset>
<normaloff>ressources/gtk-save-as.png</normaloff>ressources/gtk-save-as.png</iconset>
</property>
<property name="text"> <property name="text">
<string>Enregistrer sous ...</string> <string>Enregistrer sous ...</string>
</property> </property>
@ -572,7 +576,7 @@
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<family>Serif</family> <family>Ubuntu</family>
<weight>75</weight> <weight>75</weight>
<bold>true</bold> <bold>true</bold>
</font> </font>
@ -681,7 +685,7 @@
<action name="actionenregistrer_etude_en_cours"> <action name="actionenregistrer_etude_en_cours">
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normaloff>../ressources/menu/gtk-save-as.png</normaloff>../ressources/menu/gtk-save-as.png</iconset> <normaloff>ressources/save.png</normaloff>ressources/save.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>enregistrer_etude_en_cours</string> <string>enregistrer_etude_en_cours</string>
@ -696,7 +700,7 @@
<action name="actionfermer_etude_en_cours"> <action name="actionfermer_etude_en_cours">
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normaloff>../ressources/menu/gtk-close.png</normaloff>../ressources/menu/gtk-close.png</iconset> <normaloff>ressources/gtk-close.png</normaloff>ressources/gtk-close.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>fermer_etude_en_cours</string> <string>fermer_etude_en_cours</string>
@ -711,7 +715,7 @@
<action name="actionquitter_application"> <action name="actionquitter_application">
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normaloff>../ressources/menu/exit_bis.png</normaloff>../ressources/menu/exit_bis.png</iconset> <normaloff>ressources/exit_bis.png</normaloff>ressources/exit_bis.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>quitter_application</string> <string>quitter_application</string>
@ -726,7 +730,7 @@
<action name="actionlancer_solveur"> <action name="actionlancer_solveur">
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normaloff>../ressources/menu/gtk-execute.png</normaloff>../ressources/menu/gtk-execute.png</iconset> <normaloff>ressources/gtk-execute.png</normaloff>ressources/gtk-execute.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>lancer_solveur</string> <string>lancer_solveur</string>
@ -738,7 +742,7 @@
<action name="actioninterrompt_simulation_en_cours"> <action name="actioninterrompt_simulation_en_cours">
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normaloff>../ressources/menu/gtk-stop.png</normaloff>../ressources/menu/gtk-stop.png</iconset> <normaloff>ressources/gtk-stop.png</normaloff>ressources/gtk-stop.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>interrompt_simulation_en_cours</string> <string>interrompt_simulation_en_cours</string>
@ -750,7 +754,7 @@
<action name="actionlancer_mailleur_externe"> <action name="actionlancer_mailleur_externe">
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normaloff>../ressources/menu/gnome-stock-insert-table.png</normaloff>../ressources/menu/gnome-stock-insert-table.png</iconset> <normaloff>ressources/gnome-stock-insert-table.png</normaloff>ressources/gnome-stock-insert-table.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>lancer_mailleur_externe</string> <string>lancer_mailleur_externe</string>
@ -762,7 +766,7 @@
<action name="actionafficher_listings_simulation"> <action name="actionafficher_listings_simulation">
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normaloff>../ressources/menu/gnome-stock-edit.png</normaloff>../ressources/menu/gnome-stock-edit.png</iconset> <normaloff>ressources/gnome-stock-edit.png</normaloff>ressources/gnome-stock-edit.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>afficher_listings_simulation</string> <string>afficher_listings_simulation</string>
@ -774,7 +778,7 @@
<action name="actionReseau"> <action name="actionReseau">
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normaloff>../ressources/menu/reseau3_24.png</normaloff>../ressources/menu/reseau3_24.png</iconset> <normaloff>ressources/reseau3_24.png</normaloff>ressources/reseau3_24.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Réseau</string> <string>Réseau</string>
@ -786,7 +790,7 @@
<action name="actionGeometrie"> <action name="actionGeometrie">
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normaloff>../ressources/menu/geometrie0.png</normaloff>../ressources/menu/geometrie0.png</iconset> <normaloff>ressources/geometrie0.png</normaloff>ressources/geometrie0.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Géométrie</string> <string>Géométrie</string>
@ -798,7 +802,7 @@
<action name="actionMaillage"> <action name="actionMaillage">
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normaloff>../ressources/menu/mailles-50.png</normaloff>../ressources/menu/mailles-50.png</iconset> <normaloff>ressources/mailles-50.png</normaloff>ressources/mailles-50.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Maillage</string> <string>Maillage</string>

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB