GUI development

This commit is contained in:
BarsTiger
2022-01-27 19:46:10 +02:00
parent d3b5fa127e
commit 4b3079733b
8 changed files with 143 additions and 255 deletions

View File

@@ -14,68 +14,25 @@ from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(682, 184)
MainWindow.setMinimumSize(QtCore.QSize(682, 184))
MainWindow.setMaximumSize(QtCore.QSize(682, 184))
MainWindow.resize(682, 252)
MainWindow.setMinimumSize(QtCore.QSize(682, 252))
MainWindow.setMaximumSize(QtCore.QSize(682, 252))
MainWindow.setStyleSheet("QWidget{\n"
" background-color: rgb(30, 30, 30);\n"
"}\n"
"")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.progressBar_1 = QtWidgets.QProgressBar(self.centralwidget)
self.progressBar_1.setGeometry(QtCore.QRect(30, 80, 621, 23))
self.progressBar_1.setStyleSheet("QProgressBar { \n"
"font: 14pt;\n"
"color: rgb(200, 200, 200);\n"
"border: 2px solid grey;\n"
"text-align: center;\n"
"background-color: rgb(74, 76, 83);\n"
"}\n"
"QProgressBar::chunk {\n"
" background-color: rgb(54, 99, 197);\n"
" margin: 0.5px;\n"
"}")
self.progressBar_1.setProperty("value", 0)
self.progressBar_1.setObjectName("progressBar_1")
self.logs_box = QtWidgets.QTextBrowser(self.centralwidget)
self.logs_box.setGeometry(QtCore.QRect(30, 20, 621, 41))
self.logs_box.setGeometry(QtCore.QRect(20, 20, 641, 211))
self.logs_box.setMinimumSize(QtCore.QSize(0, 0))
self.logs_box.setMaximumSize(QtCore.QSize(1000, 1000))
self.logs_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
"border-radius: 5px; \n"
"color: rgb(242, 242, 242);")
self.logs_box.setAcceptRichText(False)
self.logs_box.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
self.logs_box.setObjectName("logs_box")
self.progressBar_2 = QtWidgets.QProgressBar(self.centralwidget)
self.progressBar_2.setGeometry(QtCore.QRect(30, 110, 621, 23))
self.progressBar_2.setStyleSheet("QProgressBar { \n"
"font: 14pt;\n"
"color: rgb(200, 200, 200);\n"
"border: 2px solid grey;\n"
"text-align: center;\n"
"background-color: rgb(74, 76, 83);\n"
"}\n"
"QProgressBar::chunk {\n"
" background-color: rgb(54, 99, 197);\n"
" margin: 0.5px;\n"
"}")
self.progressBar_2.setProperty("value", 0)
self.progressBar_2.setObjectName("progressBar_2")
self.progressBar_3 = QtWidgets.QProgressBar(self.centralwidget)
self.progressBar_3.setGeometry(QtCore.QRect(30, 140, 621, 23))
self.progressBar_3.setStyleSheet("QProgressBar { \n"
" font: 14pt;\n"
" color: rgb(200, 200, 200);\n"
" border: 2px solid grey;\n"
" text-align: center;\n"
" background-color: rgb(74, 76, 83);\n"
"}\n"
"QProgressBar::chunk {\n"
" background-color: rgb(54, 99, 197);\n"
" margin: 0.5px;\n"
"}")
self.progressBar_3.setProperty("value", 0)
self.progressBar_3.setObjectName("progressBar_3")
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)

View File

@@ -7,19 +7,19 @@
<x>0</x>
<y>0</y>
<width>682</width>
<height>184</height>
<height>252</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>682</width>
<height>184</height>
<height>252</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>682</width>
<height>184</height>
<height>252</height>
</size>
</property>
<property name="windowTitle">
@@ -32,41 +32,27 @@
</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QProgressBar" name="progressBar_1">
<property name="geometry">
<rect>
<x>30</x>
<y>80</y>
<width>621</width>
<height>23</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QProgressBar {
font: 14pt;
color: rgb(200, 200, 200);
border: 2px solid grey;
text-align: center;
background-color: rgb(74, 76, 83);
}
QProgressBar::chunk {
background-color: rgb(54, 99, 197);
margin: 0.5px;
}</string>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
<widget class="QTextBrowser" name="logs_box">
<property name="geometry">
<rect>
<x>30</x>
<x>20</x>
<y>20</y>
<width>621</width>
<height>41</height>
<width>641</width>
<height>211</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>1000</width>
<height>1000</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(74, 76, 83);
border-radius: 5px;
@@ -83,64 +69,12 @@ p, li { white-space: pre-wrap; }
<bool>false</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::NoTextInteraction</set>
<set>Qt::TextSelectableByMouse</set>
</property>
<property name="placeholderText">
<string>Logs</string>
</property>
</widget>
<widget class="QProgressBar" name="progressBar_2">
<property name="geometry">
<rect>
<x>30</x>
<y>110</y>
<width>621</width>
<height>23</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QProgressBar {
font: 14pt;
color: rgb(200, 200, 200);
border: 2px solid grey;
text-align: center;
background-color: rgb(74, 76, 83);
}
QProgressBar::chunk {
background-color: rgb(54, 99, 197);
margin: 0.5px;
}</string>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
<widget class="QProgressBar" name="progressBar_3">
<property name="geometry">
<rect>
<x>30</x>
<y>140</y>
<width>621</width>
<height>23</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QProgressBar {
font: 14pt;
color: rgb(200, 200, 200);
border: 2px solid grey;
text-align: center;
background-color: rgb(74, 76, 83);
}
QProgressBar::chunk {
background-color: rgb(54, 99, 197);
margin: 0.5px;
}</string>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
</widget>
</widget>
<resources/>