pyqt5不显示设计的页面

pyqt5:运行程序不显示窗口界面,直接显示Process finished with exit code 0,看不到pyDesigner里设计的页面。

你完全可以创建一个class来写

from 你ui转py后的py文件 import 你的ui转py文件后的类

class 你想的类名(QWidget, 你的uipy后的类名):
    def __init__(self):
        super(你想的类名, self).__init__()
        self.setupUi(self)

然后把你的12-15行删掉,然后改写成下面这样

mywin = 你想的类名()
mywin.show()

如果有帮助的话,希望可以采纳