from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(480, 350) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.txtIP = QtWidgets.QLineEdit(self.centralwidget) self.txtIP.setGeometry(QtCore.QRect(16, 36, 300, 22)) self.txtIP.setFocusPolicy(QtCore.Qt.StrongFocus) self.txtIP.setStatusTip("") self.txtIP.setInputMask("") self.txtIP.setText("") self.txtIP.setObjectName("txtIP") self.butConnect = QtWidgets.QPushButton(self.centralwidget) self.butConnect.setGeometry(QtCore.QRect(325, 33, 133, 28)) self.butConnect.setObjectName("butConnect") self.butProcess = QtWidgets.QPushButton(self.centralwidget) self.butProcess.setGeometry(QtCore.QRect(16, 79, 100, 242)) self.butProcess.setObjectName("butProcess") self.butApp = QtWidgets.QPushButton(self.centralwidget) self.butApp.setGeometry(QtCore.QRect(124, 79, 193, 78)) self.butApp.setObjectName("butApp") self.butKeyLock = QtWidgets.QPushButton(self.centralwidget) self.butKeyLock.setGeometry(QtCore.QRect(325, 79, 133, 155)) self.butKeyLock.setObjectName("butKeyLock") self.butTat = QtWidgets.QPushButton(self.centralwidget) self.butTat.setGeometry(QtCore.QRect(124, 164, 64, 70)) self.butTat.setObjectName("butTat") self.butPic = QtWidgets.QPushButton(self.centralwidget) self.butPic.setGeometry(QtCore.QRect(196, 164, 121, 70)) self.butPic.setObjectName("butPic") self.butReg = QtWidgets.QPushButton(self.centralwidget) self.butReg.setGeometry(QtCore.QRect(124, 241, 264, 80)) self.butReg.setObjectName("butReg") self.butExit = QtWidgets.QPushButton(self.centralwidget) self.butExit.setGeometry(QtCore.QRect(396, 241, 63, 80)) self.butExit.setObjectName("butExit") MainWindow.setCentralWidget(self.centralwidget) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "Client")) self.txtIP.setPlaceholderText(_translate("MainWindow", "Nhập IP")) self.butConnect.setText(_translate("MainWindow", "Kết nối")) self.butProcess.setText(_translate("MainWindow", "Process\n""Running")) self.butApp.setText(_translate("MainWindow", "App Running")) self.butKeyLock.setText(_translate("MainWindow", "Keystroke")) self.butTat.setText(_translate("MainWindow", "Tắt máy")) self.butPic.setText(_translate("MainWindow", "Chụp màn hình")) self.butReg.setText(_translate("MainWindow", "Sửa registry")) self.butExit.setText(_translate("MainWindow", "Thoát")) 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_())