from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Process(object): def setupUi(self, Process): Process.setObjectName("Process") Process.resize(400, 300) self.centralwidget = QtWidgets.QWidget(Process) self.centralwidget.setObjectName("centralwidget") self.button1 = QtWidgets.QPushButton(self.centralwidget) self.button1.setGeometry(QtCore.QRect(32, 15, 88, 58)) self.button1.setObjectName("button1") self.button2 = QtWidgets.QPushButton(self.centralwidget) self.button2.setGeometry(QtCore.QRect(128, 15, 79, 58)) self.button2.setObjectName("button2") self.button4 = QtWidgets.QPushButton(self.centralwidget) self.button4.setGeometry(QtCore.QRect(215, 15, 85, 58)) self.button4.setObjectName("button4") self.button3 = QtWidgets.QPushButton(self.centralwidget) self.button3.setGeometry(QtCore.QRect(308, 15, 79, 58)) self.button3.setObjectName("button3") self.istView1 = QtWidgets.QTableWidget(self.centralwidget) self.istView1.setGeometry(QtCore.QRect(32, 91, 353, 198)) self.istView1.setObjectName("istView1") self.istView1.setColumnCount(3) self.istView1.setRowCount(0) item = QtWidgets.QTableWidgetItem() self.istView1.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.istView1.setHorizontalHeaderItem(1, item) item = QtWidgets.QTableWidgetItem() self.istView1.setHorizontalHeaderItem(2, item) Process.setCentralWidget(self.centralwidget) self.retranslateUi(Process) QtCore.QMetaObject.connectSlotsByName(Process) def retranslateUi(self, Process): _translate = QtCore.QCoreApplication.translate Process.setWindowTitle(_translate("Process", "process")) self.button1.setText(_translate("Process", "Kill")) self.button2.setText(_translate("Process", "Xem")) self.button4.setText(_translate("Process", "Xoá")) self.button3.setText(_translate("Process", "Start")) item = self.istView1.horizontalHeaderItem(0) item.setText(_translate("Process", "Name Process")) item = self.istView1.horizontalHeaderItem(1) item.setText(_translate("Process", "ID Process")) item = self.istView1.horizontalHeaderItem(2) item.setText(_translate("Process", "Count Thread")) if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) Process = QtWidgets.QMainWindow() ui = Ui_Process() ui.setupUi(Process) Process.show() sys.exit(app.exec_())