PyQt通过UIC生成的代码显示界面

# Form implementation generated from reading ui file 'main.py'
#
# Created by: PyQt6 UI code generator 6.4.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.
from PyQt6.QtWidgets import QApplication, QWidget
from uitest import testui
import sys

if __name__ == '__main__':
    app = QApplication(sys.argv)
    w = QWidget()
    testui.Ui_Form().setupUi(w)
    w.show()
    sys.exit(app.exec())

你可能感兴趣的:(pyqt,vue.js,前端)