-
Notifications
You must be signed in to change notification settings - Fork 0
/
editUI.py
106 lines (96 loc) · 4.61 KB
/
editUI.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/ModernPluvius.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1108, 621)
MainWindow.setStyleSheet("background-color: #1e272e;")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName("horizontalLayout")
self.page_list = QtWidgets.QListWidget(self.centralwidget)
self.page_list.setMinimumSize(QtCore.QSize(100, 0))
self.page_list.setMaximumSize(QtCore.QSize(250, 16777215))
self.page_list.setStyleSheet(
"background-color:#2c3842;border:none; margin: 0 50 0 0;"
)
self.page_list.setObjectName("page_list")
self.horizontalLayout.addWidget(self.page_list)
self.stackedWidget = QtWidgets.QStackedWidget(self.centralwidget)
self.stackedWidget.setObjectName("stackedWidget")
self.page = QtWidgets.QWidget()
self.page.setObjectName("page")
self.main_view = QtWidgets.QLabel(self.page)
sizePolicy = QtWidgets.QSizePolicy(
QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding
)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.main_view.sizePolicy().hasHeightForWidth())
self.main_view.setSizePolicy(sizePolicy)
self.main_view.setMinimumSize(QtCore.QSize(0, 0))
self.main_view.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.main_view.setStyleSheet("background-color: #2c3842; margin: 0 50 0 0;")
self.main_view.setObjectName("label")
self.main_view.setObjectName("main_view")
self.progressBar = QtWidgets.QProgressBar(self.page)
self.progressBar.setGeometry(QtCore.QRect(70, 260, 291, 23))
self.progressBar.setProperty("value", 24)
self.progressBar.setObjectName("progressBar")
self.stackedWidget.addWidget(self.page)
self.page_2 = QtWidgets.QWidget()
self.page_2.setObjectName("page_2")
self.stackedWidget.addWidget(self.page_2)
self.horizontalLayout.addWidget(self.stackedWidget)
self.analysis_list = QtWidgets.QListWidget(self.centralwidget)
self.analysis_list.setMinimumSize(QtCore.QSize(411, 0))
self.analysis_list.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.analysis_list.setStyleSheet("background-color: #2c3842; border:none;")
self.analysis_list.setObjectName("analysis_list")
self.horizontalLayout.addWidget(self.analysis_list)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1108, 21))
self.menubar.setStyleSheet(
"QMenuBar{\n"
"background-color: #2c3842;\n"
"}\n"
"\n"
"QAction{\n"
"color:white;\n"
"}"
)
self.menubar.setObjectName("menubar")
self.menuOpen = QtWidgets.QMenu(self.menubar)
self.menuOpen.setObjectName("menuOpen")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setStyleSheet("background-color: #2c3842")
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.actionNew_File = QtWidgets.QAction(MainWindow)
self.actionNew_File.setObjectName("actionNew_File")
self.menuOpen.addAction(self.actionNew_File)
self.menubar.addAction(self.menuOpen.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.menuOpen.setTitle(_translate("MainWindow", "File"))
self.actionNew_File.setText(_translate("MainWindow", "Open File"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())