[英]How to organize GUI Code for a PyQt project?
我正在寻找类似于 组织 GUI 代码的东西,但适用于 Python 和 PyQt4。 特别是,我正在查看有关如何处理和存储配置数据、一般状态等的提示和示例。
编辑:我发现了一些关于旧版本的提示: http : //www.commandprompt.com/community/pyqt/
这是我们使用一些示例名称及其功能所做的工作的概述(我们在实际应用程序中有更多内容。)
ProjectFolder/
- src/
- my_project/
- model/
- preference.py # Interact with config params
- api.py # Interact with our REST api
- controller/
- startup.py # Initialization code
- login.py # Login a user
- view/
- main_window.py # Application container
- login_widget.py # Login form
- main.py # Application entry point.
- tests/
- my_project_tests/
- model/
- view/
- controller/
- resources/
- ui/ # The files match basically one to one with the modules in the view directory.
- main_window.ui
- login_widget.ui
- images/
- logo.png
- setup.py # Script to build the application (calling into the build_py2exe, etc. files below)
- build_py2exe.py # Build the py2exe exe
- build_py2app.py # Build the py2app app
- build_win_installer.iss # Package up the py2exe into an installer (Using inno setup).
- build_dmg.py #Package up the py2app into a DMG
- runtests.py # Run the tests
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.