安裝非常簡單!
1.Raspberry開機連接至互聯網
2.安裝PyQt5
sudo apt-get install python3-pyqt5
3.看看PyQt中都哪些模塊
先進入Python交互環境后用help命令查看,可運行IDLE軟件或在命令行中輸入"Python3"
$ Python3 Python 3.6.1 |Anaconda 4.4.0 (x86_64)| (default, May 11 2017, 13:04:09) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import PyQt5 >>> help(PyQt5)
#help(PyQt5)命令執行后將切換到新界面,只顯示如下說是的內容,按回車鍵繼續顯示,按‘q'鍵退出回到python交互模式
...
PACKAGE CONTENTS Qt QtBluetooth QtCore QtDesigner QtGui QtHelp QtMacExtras QtMultimedia QtMultimediaWidgets QtNetwork QtNfc QtOpenGL QtPrintSupport QtQml QtQuick QtQuickWidgets QtSql QtSvg QtTest QtWebChannel QtWebEngineCore QtWebEngineWidgets QtWebSockets QtWidgets QtXml QtXmlPatterns
...
>>> dir(PyQt5) >>> exit()
附:主要文檔
- PyQt5參考手冊:http://pyqt.sourceforge.net/Docs/PyQt5/introduction.html
- Qt參考文檔:http://doc.qt.io/
- Qt5參考手冊:http://doc.qt.io/qt-5/index.html
