pyqt5加载ui的程序运行后没有显示出ui
ui也是设计好的
import PyQt5.uic
import PyQt5.uic
from_class = PyQt5.uic.loadUi('C:\\Users\\Administrator\\Desktop\\untitled.ui')
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
class MainWindow(QMainWindow):
def __init__(self, parent=None):
super(MainWindow, self).__init__(parent)
PyQt5.uic.loadUi('C:\\秘密\\秘密\\Desktop\\untitled.ui', self)
self.pushButton.clicked.connect(self.pushbutton_clicked)
app = QApplication(sys.argv)
w = MainWindow()
w.show()
sys.exit(app.exec())
运行结果:进程已结束,退出代码为 -1073740791 (0xC0000409)
没有报错
试过很多方法都不行
希望可以显示出ui
求解!