how to use pyuic5.bat + pyuic5 和pyuic之间的差别
-x $FileName$ -o Ui_$FileNameWithoutExtension$.py
在 pycharm中
C:\Users\XXX\Anaconda3\envs\Eric\Lib\site-packages\PyQt5\pyuic5.bat
-x $FileName$ -o Uii_$FileNameWithoutExtension$.py
$FileDir$
这个插件和PyUic的差别在于,bat能够直接生成main的code,用来执行
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())