Python 如何组织PyQt项目的GUI代码?
我在找类似的东西 ,但对于Python和PyQt4。特别是,我正在研究如何处理和存储配置数据、一般状态等的技巧和示例 编辑:Python 如何组织PyQt项目的GUI代码?,python,pyqt4,code-organization,Python,Pyqt4,Code Organization,我在找类似的东西 ,但对于Python和PyQt4。特别是,我正在研究如何处理和存储配置数据、一般状态等的技巧和示例 编辑: 我在下面找到了一些关于旧版本的提示:下面是我们所做工作的概述,其中包括一些示例名称及其功能(我们在实际的应用程序中有更多) 这是一个开源应用程序吗?你介意给我一个到源代码的链接吗?@data:该应用程序从未真正投入生产,我也不再在该公司工作。我在那里的时候,我们讨论过让它开源,但从来没有考虑过。我会在这周的午餐时间问他们,但我需要几个星期才能有时间。我的目标是将所有内容抽
我在下面找到了一些关于旧版本的提示:下面是我们所做工作的概述,其中包括一些示例名称及其功能(我们在实际的应用程序中有更多)
这是一个开源应用程序吗?你介意给我一个到源代码的链接吗?@data:该应用程序从未真正投入生产,我也不再在该公司工作。我在那里的时候,我们讨论过让它开源,但从来没有考虑过。我会在这周的午餐时间问他们,但我需要几个星期才能有时间。我的目标是将所有内容抽象成一个基本的pyqt4项目,并将我们的应用程序作为一个示例项目?我还是很想看看你是怎么解决的。我的代码离alpha之前的版本还很远;)
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