# -*- coding: utf-8 -*- """ Created on Mon May 27 09:37:57 2024 @author: WANGXIBAO """ import sys from PyQt5 import QtWidgets from PyUartUi import Ui_UartAssistant if __name__ == "__main__": app = QtWidgets.QApplication(sys.argv) UartAssistant = QtWidgets.QWidget() ui = Ui_UartAssistant() ui.setupUi(UartAssistant) UartAssistant.show() sys.exit(app.exec_())