这个python 程序怎么输出窗口运行
PHP中文网
PHP中文网 2017-04-18 10:22:36
0
1
687

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_MainWindow(object):

def setupUi(self, MainWindow):
    MainWindow.setObjectName("MainWindow")
    MainWindow.resize(472, 239)
    self.centralwidget = QtWidgets.QWidget(MainWindow)
    self.centralwidget.setObjectName("centralwidget")
    self.pushButton = QtWidgets.QPushButton(self.centralwidget)
    self.pushButton.setGeometry(QtCore.QRect(90, 130, 75, 23))
    self.pushButton.setObjectName("pushButton")
    self.timeEdit = QtWidgets.QTimeEdit(self.centralwidget)
    self.timeEdit.setGeometry(QtCore.QRect(170, 60, 131, 41))
    self.timeEdit.setObjectName("timeEdit")
    self.label = QtWidgets.QLabel(self.centralwidget)
    self.label.setGeometry(QtCore.QRect(240, 150, 191, 41))
    self.label.setObjectName("label")
    MainWindow.setCentralWidget(self.centralwidget)
    self.statusbar = QtWidgets.QStatusBar(MainWindow)
    self.statusbar.setObjectName("statusbar")
    MainWindow.setStatusBar(self.statusbar)
    self.menuBar = QtWidgets.QMenuBar(MainWindow)
    self.menuBar.setGeometry(QtCore.QRect(0, 0, 472, 23))
    self.menuBar.setObjectName("menuBar")
    self.menu = QtWidgets.QMenu(self.menuBar)
    self.menu.setObjectName("menu")
    MainWindow.setMenuBar(self.menuBar)
    self.action33 = QtWidgets.QAction(MainWindow)
    self.action33.setObjectName("action33")
    self.action_2 = QtWidgets.QAction(MainWindow)
    self.action_2.setObjectName("action_2")
    self.menu.addAction(self.action_2)
    self.menuBar.addAction(self.menu.menuAction())

    self.retranslateUi(MainWindow)
    QtCore.QMetaObject.connectSlotsByName(MainWindow)

def retranslateUi(self, MainWindow):
    _translate = QtCore.QCoreApplication.translate
    MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
    self.pushButton.setText(_translate("MainWindow", "PushButton"))
    self.label.setText(_translate("MainWindow", "15454541"))
    self.menu.setTitle(_translate("MainWindow", "菜单"))
    self.action33.setText(_translate("MainWindow", "打开"))
    self.action_2.setText(_translate("MainWindow", "打开"))
PHP中文网
PHP中文网

认证0级讲师

모든 응답(1)
小葫芦

if 이름 == "__main__":

으아악
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿