Skip to content

Commit

Permalink
🍱 Add assets for "Eau" tab
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaSecond committed Jun 3, 2024
1 parent bb67ae8 commit b200998
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 3 deletions.
19 changes: 18 additions & 1 deletion GUI.ui
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<enum>QTabWidget::TabShape::Rounded</enum>
</property>
<property name="currentIndex">
<number>4</number>
<number>6</number>
</property>
<property name="tabsClosable">
<bool>false</bool>
Expand Down Expand Up @@ -1015,6 +1015,22 @@
<attribute name="title">
<string>Eau</string>
</attribute>
<widget class="QLabel" name="label_23">
<property name="geometry">
<rect>
<x>690</x>
<y>140</y>
<width>601</width>
<height>531</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="assets/Eau.qrc">:/newPrefix/Schema Eau.png</pixmap>
</property>
</widget>
</widget>
<widget class="QWidget" name="Paramtres">
<attribute name="icon">
Expand Down Expand Up @@ -1340,6 +1356,7 @@
</widget>
<resources>
<include location="assets/Injection.qrc"/>
<include location="assets/Eau.qrc"/>
</resources>
<connections/>
</ui>
8 changes: 7 additions & 1 deletion GUI_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
QSizePolicy, QSpinBox, QStatusBar, QTabWidget,
QTextBrowser, QWidget)
import Injection_rc
import Eau_rc

class Ui_MainWindow(object):
def setupUi(self, MainWindow):
Expand Down Expand Up @@ -311,6 +312,10 @@ def setupUi(self, MainWindow):
self.tabWidget.addTab(self.Vide, "")
self.Eau = QWidget()
self.Eau.setObjectName(u"Eau")
self.label_23 = QLabel(self.Eau)
self.label_23.setObjectName(u"label_23")
self.label_23.setGeometry(QRect(690, 140, 601, 531))
self.label_23.setPixmap(QPixmap(u":/newPrefix/Schema Eau.png"))
self.tabWidget.addTab(self.Eau, "")
self.Paramtres = QWidget()
self.Paramtres.setObjectName(u"Paramtres")
Expand Down Expand Up @@ -406,7 +411,7 @@ def setupUi(self, MainWindow):

self.retranslateUi(MainWindow)

self.tabWidget.setCurrentIndex(4)
self.tabWidget.setCurrentIndex(6)


QMetaObject.connectSlotsByName(MainWindow)
Expand Down Expand Up @@ -453,6 +458,7 @@ def retranslateUi(self, MainWindow):
self.label_53.setText(QCoreApplication.translate("MainWindow", u"Vide primaire", None))
self.label_54.setText(QCoreApplication.translate("MainWindow", u"Vide secondaire", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Vide), QCoreApplication.translate("MainWindow", u"Vide", None))
self.label_23.setText("")
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Eau), QCoreApplication.translate("MainWindow", u"Eau", None))
self.label_43.setText(QCoreApplication.translate("MainWindow", u"Chemin du dossier", None))
self.label_56.setText(QCoreApplication.translate("MainWindow", u"Fr\u00e9quence d'enregistrement", None))
Expand Down
5 changes: 5 additions & 0 deletions assets/Eau.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="newPrefix">
<file>Schema Eau.png</file>
</qresource>
</RCC>
69 changes: 69 additions & 0 deletions assets/Eau_rc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Resource object code (Python 3)
# Created by: object code
# Created by: The Resource Compiler for Qt version 6.7.0
# WARNING! All changes made in this file will be lost!

from PySide6 import QtCore

qt_resource_data = b"\
\x00\x00\x01\xdf\
\x00\
\x00\x07\xd4x\xda\xeb\x0c\xf0s\xe7\xe5\x92\xe2b``\
\xe0\xf5\xf4p\x09b``\x0a\x03bv\x0e6\xa0H\
l\xb9\x90/\x90\xe2,\xf0\x88,f`\xe0\x16\x06a\
F\x86Ys$\x80\x82\x8c\xc5A\xeeN\x0c\xeb\xce\xc9\
\xbc\x04rX\xd2\x1d}\x1d\x19\x186\xf6s\xffId\
e``\xcf\xf4tq\x0c\xa9`|{\xf3\xa1\xaf4\
\xb7\x80\xdb\xc5\xc8\xc7q\x02\xa1*\xac\x0ff\x19\x98\xde\
d\xb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x09M\x00\xe0\x0c>w\
"

qt_resource_name = b"\
\x00\x09\
\x0cxT\x88\
\x00n\
\x00e\x00w\x00P\x00r\x00e\x00f\x00i\x00x\
\x00\x0e\
\x08`'\xa7\
\x00S\
\x00c\x00h\x00e\x00m\x00a\x00 \x00E\x00a\x00u\x00.\x00p\x00n\x00g\
"

qt_resource_struct = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x18\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x01\x8f\xa4\xbc\x1c\xcf\
"

def qInitResources():
QtCore.qRegisterResourceData(0x03, qt_resource_struct, qt_resource_name, qt_resource_data)

def qCleanupResources():
QtCore.qUnregisterResourceData(0x03, qt_resource_struct, qt_resource_name, qt_resource_data)

qInitResources()
1 change: 0 additions & 1 deletion assets/Injection_rc.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,3 @@ def qCleanupResources():
QtCore.qUnregisterResourceData(0x03, qt_resource_struct, qt_resource_name, qt_resource_data)

qInitResources()
# Développé avec ❤️ par : www.noasecond.com.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ def refresh_ports():
if __name__ == "__main__":
app = QtWidgets.QApplication([])
MainWindow = loadUiWidget("GUI.ui")
MainWindow.setWindowTitle("MiniCyc")
app_icon = QtGui.QIcon("assets/icon.ico")
app.setWindowIcon(app_icon)
MainWindow.showFullScreen()
MainWindow.showMaximized()

Expand Down

0 comments on commit b200998

Please sign in to comment.