1.html
https://www.cnblogs.com/dalanjing/p/6978373.htmlwindows
-m PyQt5.uic.pyuic $FileName$ -o $FileNameWithoutExtension$.py app
2.ui
經過如下快速跳到 QtDesinger裏google
隨便設置一下,並保存到該項目路徑中,會以.ui的文件方式保存。spa
3.經過對t1.ui 使用轉換,能夠生成t1.py.net
4.3d
將裏邊的3個語句註釋掉code
# MainWindow.setCentralWidget(self.centralwidget)
# MainWindow.setMenuBar(self.menubar)
# MainWindow.setStatusBar(self.statusbar)
並添加
if __name__=="__main__":
import sys
app=QtWidgets.QApplication(sys.argv)
widget=QtWidgets.QWidget()
ui=Ui_MainWindow()
ui.setupUi(widget)
widget.show()
sys.exit(app.exec_())
便可正常執行
https://blog.csdn.net/lyzwjaa/article/details/79429901
https://blog.csdn.net/qq_40666028/article/details/81069878
https://jingyan.baidu.com/article/5553fa8298b99c65a23934dd.html
Collecting pyqt5-tools
Could not find a version that satisfies the requirement pyqt5-tools (from versions: ) No matching distribution found for pyqt5-tools
沒辦法,想要解決這個問題,先在網上找找答案吧!在google下搜到了這個答案htm
到此,明白了爲啥安裝失敗,緣由是pyqt5-tools尚未mac版的,目前只提供了windows版本