简体   繁体   English

如何将GUI样机导出到Python GUI代码(例如wxpython)?

[英]How do I export GUI mockups to Python GUI code (e.g. wxpython)?

I want to take my mockups and export them to code using any python GUI library (wxpython, pyqt, etc). 我想使用任何Python GUI库(wxpython,pyqt等)将我的模型导出到代码中。 For example, this capability already exists for mockups->HTML/Javascript here: 例如,此功能已经存在于此处的样机-> HTML / Javascript中:

http://www.balsamiq.com/products/mockups/community http://www.balsamiq.com/products/mockups/community

I need a fast, easy, high level mockup tool like balsamiq, not a slow, low level tool like boa constructor. 我需要像balsamiq这样的快速,简单,高级的模型工具,而不是像boa构造函数那样的慢速,低级的工具。

Is there any combination of mockups/exporter tools like this for python? python是否有像这样的样机/导出器工具的组合?

You can use the Qt Designer tool to do your mock-ups and then use the pyuic4 command line tool to convert the .pro file into Python code. 您可以使用Qt Designer工具进行模拟,然后使用pyuic4命令行工具将.pro文件转换为Python代码。

Here are some references if you get stuck: 如果遇到问题,这里有一些参考:

http://diotavelli.net/PyQtWiki/Creating_GUI_Applications_with_PyQt_and_Qt_Designer http://diotavelli.net/PyQtWiki/Creating_GUI_Applications_with_PyQt_and_Qt_Designer

http://wiki.python.org/moin/JonathanGardnerPyQtTutorial http://wiki.python.org/moin/JonathanGardnerPyQtTutorial

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Linux程序(例如bash或python脚本)如何知道它是如何启动的:从命令行还是交互式GUI? - How can Linux program, e.g. bash or python script, know how it was started: from command line or interactive GUI? 如何在Excel文件中导出wxpython gui文本? - How to export wxpython gui text in excel file? 更高级别的Python GUI工具包,例如,为TreeView / Grid传递dict - higher level Python GUI toolkit, e.g. pass dict for TreeView/Grid 如何使用wxpython退出多线程GUI? - How do I Quit a Multi-Threaded GUI with wxpython? 如何使用wxPython打开大小正确的GUI? - How Do I Make a GUI Open with the Correct Size with wxPython? 如何判断我是否已在 VS 代码中成功导入了 Python 包(例如 Pandas)? - How can I tell if I have successfully imported a package for python (e.g. Pandas) in VS code? 如何为 wxPython(例如 wxMSW)使用特定于平台的“端口”? - How to use platform specific "ports" for wxPython (e.g. wxMSW)? 如何将我的 python GUI 与我的 python 代码结合起来 - How do I combine my python GUI with my python code 如何使用 GUI 连接后端 Python 代码 - How do I Connect Backend Python Code with a GUI 如何针对自定义的Postgresql(例如PG_CONFIG)构建和安装PL / Python? - How do I build and install PL/Python against a custom Postgresql (e.g. PG_CONFIG)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM