安装指令:
sudo apt install pyqt5*
sudo apt install python3-pyqt5
sudo apt-get install pyqt5-dev-tools
sudo apt-get install qttools5-dev-tools
测试代码:
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
import hellopyqt
if __name__ == '__main__':
app = QApplication(sys.argv)
MainWindow = QMainWindow()
ui = hellopyqt.Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())