|
@@ -1,3 +1,33 @@
|
|
|
-1.条件
|
|
|
- 安装 Pyqt5 Pyqt5-tools
|
|
|
- where python确定安装路径
|
|
|
+1. 条件
|
|
|
+ 安装的模块:PyQt5, PyQt5-tools
|
|
|
+ where python 确定Python安装路径: ${PYTHON_HOME}
|
|
|
+ 安装的模块在
|
|
|
+ ${PYTHON_HOME}/Lib/site-packages/PyQt5
|
|
|
+ ${PYTHON_HOME}/Lib/site-packages/pyqt5-tools
|
|
|
+ ${PYTHON_HOME}/Lib/site-packages/qt5-application
|
|
|
+ ${PYTHON_HOME}/Lib/site-packages/qt5_applications/Qt/bin
|
|
|
+ |- designer.exe GUI(Graphic User Interface)
|
|
|
+ |- uic.exe 把我们设计的GUI转换为python代码
|
|
|
+ |- Scripts\pyuic5.exe = uic.exe
|
|
|
+
|
|
|
+备注:
|
|
|
+ pip install PyQt5 -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
+ pip install PyQt5-tools -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+2. 开发一个窗体程序
|
|
|
+ 2.1. 创建QApplication
|
|
|
+ 2.2. 创建对话框
|
|
|
+ 窗体:主窗体(菜单),对话框(无菜单),闪屏(没有标题栏)
|
|
|
+
|
|
|
+3. 在窗体添加按钮,文本框,标签,多选案例,单旋按钮。。。。。
|
|
|
+
|
|
|
+
|
|
|
+4. 程序开发的结构(模式)
|
|
|
+ main.py # 程序入口
|
|
|
+ 根目录monitor
|
|
|
+ |- ui # 界面设计
|
|
|
+ |- form # 窗体
|
|
|
+ |- biz # 业务实现(人工智能推理接口)
|
|
|
+ |- dev # 摄像头的处理
|