这个python 程序怎么输出窗口运行
威尼斯人娱乐城
威尼斯人娱乐城
当前位置 : 威尼斯人娱乐城 > 威尼斯人娱乐城

这个python 程序怎么输出窗口运行

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_MainWindowobject:

def setupUiself, MainWindow:
    MainWindow.setObjectName"MainWindow"
    MainWindow.resize472, 239
    self.centralwidget = QtWidgets.QWidgetMainWindow
    self.centralwidget.setObjectName"centralwidget"
    self.pushButton = QtWidgets.QPushButtonself.centralwidget
    self.pushButton.setGeometryQtCore.QRect90, 130, 75, 23
    self.pushButton.setObjectName"pushButton"
    self.timeEdit = QtWidgets.QTimeEditself.centralwidget
    self.timeEdit.setGeometryQtCore.QRect170, 60, 131, 41
    self.timeEdit.setObjectName"timeEdit"
    self.label = QtWidgets.QLabelself.centralwidget
    self.label.setGeometryQtCore.QRect240, 150, 191, 41
    self.label.setObjectName"label"
    MainWindow.setCentralWidgetself.centralwidget
    self.statusbar = QtWidgets.QStatusBarMainWindow
    self.statusbar.setObjectName"statusbar"
    MainWindow.setStatusBarself.statusbar
    self.menuBar = QtWidgets.QMenuBarMainWindow
    self.menuBar.setGeometryQtCore.QRect0, 0, 472, 23
    self.menuBar.setObjectName"menuBar"
    self.menu = QtWidgets.QMenuself.menuBar
    self.menu.setObjectName"menu"
    MainWindow.setMenuBarself.menuBar
    self.action33 = QtWidgets.QActionMainWindow
    self.action33.setObjectName"action33"
    self.action_2 = QtWidgets.QActionMainWindow
    self.action_2.setObjectName"action_2"
    self.menu.addActionself.action_2
    self.menuBar.addActionself.menu.menuAction

    self.retranslateUiMainWindow
    QtCore.QMetaObject.connectSlotsByNameMainWindow

def retranslateUiself, 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", "打开"

if name == "__main__":

app = QtWidgets.QApplicationsys.argv
MainWindow = QtWidgets.QMainWindow
ui = Ui_MainWindow
ui.setupUiMainWindow
MainWindow.show
sys.exitapp.exec_

栏目列表

广告位

威尼斯人娱乐城