-
Notifications
You must be signed in to change notification settings - Fork 0
/
UIMainWindowForBeautify.py
128 lines (121 loc) · 6.92 KB
/
UIMainWindowForBeautify.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UIMainWindowForBeautify.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# 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(957, 720)
MainWindow.setMouseTracking(False)
MainWindow.setTabletTracking(False)
MainWindow.setAcceptDrops(False)
MainWindow.setDocumentMode(False)
MainWindow.setDockNestingEnabled(False)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout_2 = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout_2.setObjectName("gridLayout_2")
self.tableView = QtWidgets.QTableView(self.centralwidget)
self.tableView.setObjectName("tableView")
self.gridLayout_2.addWidget(self.tableView, 6, 3, 1, 1)
self.modulechoose = QtWidgets.QComboBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.modulechoose.sizePolicy().hasHeightForWidth())
self.modulechoose.setSizePolicy(sizePolicy)
self.modulechoose.setObjectName("modulechoose")
self.gridLayout_2.addWidget(self.modulechoose, 1, 3, 3, 1)
self.label = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
self.label.setSizePolicy(sizePolicy)
self.label.setObjectName("label")
self.gridLayout_2.addWidget(self.label, 4, 0, 3, 1)
self.Refresh = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Refresh.sizePolicy().hasHeightForWidth())
self.Refresh.setSizePolicy(sizePolicy)
self.Refresh.setObjectName("Refresh")
self.gridLayout_2.addWidget(self.Refresh, 1, 0, 1, 1)
self.comportchoose = QtWidgets.QComboBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.comportchoose.sizePolicy().hasHeightForWidth())
self.comportchoose.setSizePolicy(sizePolicy)
self.comportchoose.setObjectName("comportchoose")
self.gridLayout_2.addWidget(self.comportchoose, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 957, 26))
self.menubar.setObjectName("menubar")
self.menuFiles = QtWidgets.QMenu(self.menubar)
self.menuFiles.setObjectName("menuFiles")
self.menuModule = QtWidgets.QMenu(self.menubar)
self.menuModule.setObjectName("menuModule")
self.menusystem = QtWidgets.QMenu(self.menubar)
self.menusystem.setObjectName("menusystem")
self.menuhelp = QtWidgets.QMenu(self.menubar)
self.menuhelp.setObjectName("menuhelp")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.Exit = QtWidgets.QAction(MainWindow)
self.Exit.setObjectName("Exit")
self.actionsystem = QtWidgets.QAction(MainWindow)
self.actionsystem.setObjectName("actionsystem")
self.actionmodule = QtWidgets.QAction(MainWindow)
self.actionmodule.setObjectName("actionmodule")
self.actionrefreshsytem = QtWidgets.QAction(MainWindow)
self.actionrefreshsytem.setObjectName("actionrefreshsytem")
self.actionsystemgetsignal = QtWidgets.QAction(MainWindow)
self.actionsystemgetsignal.setObjectName("actionsystemgetsignal")
self.actionsystemrefresh = QtWidgets.QAction(MainWindow)
self.actionsystemrefresh.setObjectName("actionsystemrefresh")
self.actiongetmodule = QtWidgets.QAction(MainWindow)
self.actiongetmodule.setObjectName("actiongetmodule")
self.actionrefreshmodule = QtWidgets.QAction(MainWindow)
self.actionrefreshmodule.setObjectName("actionrefreshmodule")
self.actionNothing_Here = QtWidgets.QAction(MainWindow)
self.actionNothing_Here.setObjectName("actionNothing_Here")
self.menuFiles.addAction(self.Exit)
self.menuModule.addAction(self.actiongetmodule)
self.menuModule.addAction(self.actionrefreshmodule)
self.menusystem.addAction(self.actionsystemgetsignal)
self.menusystem.addAction(self.actionsystemrefresh)
self.menuhelp.addAction(self.actionNothing_Here)
self.menubar.addAction(self.menuFiles.menuAction())
self.menubar.addAction(self.menusystem.menuAction())
self.menubar.addAction(self.menuModule.menuAction())
self.menubar.addAction(self.menuhelp.menuAction())
self.retranslateUi(MainWindow)
self.Exit.triggered.connect(MainWindow.close)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Test"))
self.label.setText(_translate("MainWindow", "TextLabel"))
self.Refresh.setText(_translate("MainWindow", "AllRefresh"))
self.menuFiles.setTitle(_translate("MainWindow", "Files"))
self.menuModule.setTitle(_translate("MainWindow", "Module"))
self.menusystem.setTitle(_translate("MainWindow", "system"))
self.menuhelp.setTitle(_translate("MainWindow", "help"))
self.Exit.setText(_translate("MainWindow", "Exit"))
self.actionsystem.setText(_translate("MainWindow", "system"))
self.actionmodule.setText(_translate("MainWindow", "module"))
self.actionrefreshsytem.setText(_translate("MainWindow", "refreshsytem"))
self.actionsystemgetsignal.setText(_translate("MainWindow", "getsignal"))
self.actionsystemrefresh.setText(_translate("MainWindow", "refresh"))
self.actiongetmodule.setText(_translate("MainWindow", "Get"))
self.actionrefreshmodule.setText(_translate("MainWindow", "refresh"))
self.actionNothing_Here.setText(_translate("MainWindow", "Nothing Here!"))