-
Notifications
You must be signed in to change notification settings - Fork 0
/
-ui_file3.py
182 lines (175 loc) · 10.2 KB
/
-ui_file3.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'management_pc.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_management(object):
def setupUi(self, management):
management.setObjectName("management")
management.resize(640, 480)
management.setMinimumSize(QtCore.QSize(640, 480))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
management.setWindowIcon(icon)
self.gridLayout_2 = QtWidgets.QGridLayout(management)
self.gridLayout_2.setObjectName("gridLayout_2")
self.error = QtWidgets.QLabel(management)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.error.sizePolicy().hasHeightForWidth())
self.error.setSizePolicy(sizePolicy)
self.error.setText("")
self.error.setObjectName("error")
self.gridLayout_2.addWidget(self.error, 9, 0, 1, 1)
self.pushButton_10 = QtWidgets.QPushButton(management)
self.pushButton_10.setObjectName("pushButton_10")
self.gridLayout_2.addWidget(self.pushButton_10, 9, 1, 1, 1)
self.tabWidget = QtWidgets.QTabWidget(management)
self.tabWidget.setObjectName("tabWidget")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.gridLayout = QtWidgets.QGridLayout(self.tab)
self.gridLayout.setObjectName("gridLayout")
self.tableWidget = QtWidgets.QTableWidget(self.tab)
self.tableWidget.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.tableWidget.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
self.tableWidget.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.tableWidget.setObjectName("tableWidget")
self.tableWidget.setColumnCount(2)
self.tableWidget.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
self.gridLayout.addWidget(self.tableWidget, 0, 0, 1, 1)
self.pushButton_4 = QtWidgets.QPushButton(self.tab)
self.pushButton_4.setObjectName("pushButton_4")
self.gridLayout.addWidget(self.pushButton_4, 1, 0, 1, 1)
self.tabWidget.addTab(self.tab, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_2)
self.gridLayout_3.setObjectName("gridLayout_3")
self.pushButton_6 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_6.setObjectName("pushButton_6")
self.gridLayout_3.addWidget(self.pushButton_6, 1, 1, 1, 1)
self.pushButton_5 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_5.setObjectName("pushButton_5")
self.gridLayout_3.addWidget(self.pushButton_5, 1, 0, 1, 1)
self.tableWidget_2 = QtWidgets.QTableWidget(self.tab_2)
self.tableWidget_2.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.tableWidget_2.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
self.tableWidget_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.tableWidget_2.setObjectName("tableWidget_2")
self.tableWidget_2.setColumnCount(3)
self.tableWidget_2.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setHorizontalHeaderItem(2, item)
self.gridLayout_3.addWidget(self.tableWidget_2, 0, 0, 1, 2)
self.line_3 = QtWidgets.QFrame(self.tab_2)
self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_3.setObjectName("line_3")
self.gridLayout_3.addWidget(self.line_3, 2, 0, 1, 2)
self.comboBox = QtWidgets.QComboBox(self.tab_2)
self.comboBox.setObjectName("comboBox")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.gridLayout_3.addWidget(self.comboBox, 3, 0, 1, 1)
self.pushButton_7 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_7.setObjectName("pushButton_7")
self.gridLayout_3.addWidget(self.pushButton_7, 3, 1, 1, 1)
self.tabWidget.addTab(self.tab_2, "")
self.tab_3 = QtWidgets.QWidget()
self.tab_3.setObjectName("tab_3")
self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_3)
self.gridLayout_4.setContentsMargins(9, 9, -1, -1)
self.gridLayout_4.setObjectName("gridLayout_4")
self.pushButton_3 = QtWidgets.QPushButton(self.tab_3)
self.pushButton_3.setObjectName("pushButton_3")
self.gridLayout_4.addWidget(self.pushButton_3, 8, 1, 1, 1)
self.line_2 = QtWidgets.QFrame(self.tab_3)
self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.gridLayout_4.addWidget(self.line_2, 3, 0, 1, 2)
self.pushButton = QtWidgets.QPushButton(self.tab_3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton.sizePolicy().hasHeightForWidth())
self.pushButton.setSizePolicy(sizePolicy)
self.pushButton.setObjectName("pushButton")
self.gridLayout_4.addWidget(self.pushButton, 4, 0, 1, 2)
self.pushButton_2 = QtWidgets.QPushButton(self.tab_3)
self.pushButton_2.setObjectName("pushButton_2")
self.gridLayout_4.addWidget(self.pushButton_2, 8, 0, 1, 1)
self.pushButton_8 = QtWidgets.QPushButton(self.tab_3)
self.pushButton_8.setObjectName("pushButton_8")
self.gridLayout_4.addWidget(self.pushButton_8, 2, 0, 1, 2)
self.line = QtWidgets.QFrame(self.tab_3)
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.gridLayout_4.addWidget(self.line, 5, 0, 1, 2)
self.lineEdit = QtWidgets.QLineEdit(self.tab_3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineEdit.sizePolicy().hasHeightForWidth())
self.lineEdit.setSizePolicy(sizePolicy)
self.lineEdit.setObjectName("lineEdit")
self.gridLayout_4.addWidget(self.lineEdit, 1, 0, 1, 1)
self.pushButton_9 = QtWidgets.QPushButton(self.tab_3)
self.pushButton_9.setObjectName("pushButton_9")
self.gridLayout_4.addWidget(self.pushButton_9, 1, 1, 1, 1)
self.tabWidget.addTab(self.tab_3, "")
self.gridLayout_2.addWidget(self.tabWidget, 6, 0, 1, 2)
self.retranslateUi(management)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(management)
def retranslateUi(self, management):
_translate = QtCore.QCoreApplication.translate
management.setWindowTitle(_translate("management", "Управление ПК"))
self.pushButton_10.setText(_translate("management", "Обновить данные"))
self.tableWidget.setSortingEnabled(True)
item = self.tableWidget.horizontalHeaderItem(0)
item.setText(_translate("management", "Название"))
item = self.tableWidget.horizontalHeaderItem(1)
item.setText(_translate("management", "ID"))
self.pushButton_4.setText(_translate("management", "Завершить процесс"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("management", "Процессы"))
self.pushButton_6.setText(_translate("management", "Завершить"))
self.pushButton_5.setText(_translate("management", "Запустить"))
self.tableWidget_2.setSortingEnabled(True)
item = self.tableWidget_2.horizontalHeaderItem(0)
item.setText(_translate("management", "Имя"))
item = self.tableWidget_2.horizontalHeaderItem(1)
item.setText(_translate("management", "Режим запуска"))
item = self.tableWidget_2.horizontalHeaderItem(2)
item.setText(_translate("management", "Состояние"))
self.comboBox.setItemText(0, _translate("management", "Manual"))
self.comboBox.setItemText(1, _translate("management", "Automatic"))
self.comboBox.setItemText(2, _translate("management", "Disabled"))
self.comboBox.setItemText(3, _translate("management", "Boot"))
self.comboBox.setItemText(4, _translate("management", "System"))
self.pushButton_7.setText(_translate("management", "Изменить режим запуска"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("management", "Службы"))
self.pushButton_3.setText(_translate("management", "Перезагрузить ПК"))
self.pushButton.setText(_translate("management", "Открыть редактор реестра"))
self.pushButton_2.setText(_translate("management", "Выключить ПК"))
self.pushButton_8.setText(_translate("management", "Вывести из домена"))
self.lineEdit.setPlaceholderText(_translate("management", "Имя домена"))
self.pushButton_9.setText(_translate("management", "Добавить в домен"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("management", "Управление ПК"))