马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
显示展示一个白色的页面,停顿一会儿后才出现我想要的页面, 请问是什么问题导致,求大佬帮助,代码如下
# -*- coding: utf-8 -*-
import sys
# Form implementation generated from reading ui file '.\projectpage.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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_projectpage(object):
def setupUi(self, projectpage):
projectpage.setObjectName("projectpage")
projectpage.resize(1018, 781)
self.horizontalLayout = QtWidgets.QHBoxLayout(projectpage)
self.horizontalLayout.setObjectName("horizontalLayout")
self.widget = QtWidgets.QWidget(projectpage)
self.widget.setStyleSheet("background-color: rgb(39, 39, 39);")
self.widget.setObjectName("widget")
self.widget.resize(1018, 781)
self.pushButton = QtWidgets.QPushButton(self.widget)
self.pushButton.setGeometry(QtCore.QRect(30, 40, 201, 111))
self.pushButton.setMinimumSize(QtCore.QSize(201, 111))
self.pushButton.setStyleSheet("background-color: rgb(50, 50, 50);")
self.pushButton.setObjectName("pushButton")
self.horizontalLayout.addWidget(self.widget)
self.retranslateUi(projectpage)
QtCore.QMetaObject.connectSlotsByName(projectpage)
def retranslateUi(self, projectpage):
_translate = QtCore.QCoreApplication.translate
projectpage.setWindowTitle(_translate("projectpage", "Form"))
self.pushButton.setText(_translate("projectpage", "PushButton"))
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_projectpage()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
|