pyside2 将UI文件转换成py文件引入到工程中
先在QT designer中画一个QT工程
接下来直接上程序
from PySide2.QtWidgets import QApplication, QWidget, QMainWindow
from ui.ui_qttest1 import Ui_MainWindow
class MainWindows(QMainWindow):
def __init__(self):
super().__init__()
self.ui = Ui_MainWindo
原创
2021-11-24 19:51:53 ·
4007 阅读 ·
0 评论