Delphi-like GUI designer for Python

江枫思渺然 提交于 2020-01-31 03:46:04

问题


Is there any GUI toolkit for Python with form designer similar to Delphi, eg where one can drag and drop controls to form, move them around etc.


回答1:


I recommend PyQt (now from Nokia), which uses Qt Designer. Qt designer produces XML files (.ui) which you can either convert to Python modules using a utility called pyuic, or load dynamically from your Python program.

You do have to write your Python code in a different editor, i.e. Designer is only the GUI designer part and not a complete IDE. They have an IDE in beta called Qt Creator, but I don't think it supports Python very well at this stage.

If you'd rather go with wxPython, wxGlade will output Python code.




回答2:


Use Glade + PyGTk to do GUI programming in Python. Glade is a tool which allows you to create graphical interfaces by dragging and dropping widgets. In turn Glade generates the interface definition in XML which you can hook up with your code using libglade. Check the website of Glade for more info.




回答3:


If your using wxPython check out BoaConstructor, it is a complete Python IDE with a GUI designer.



来源:https://stackoverflow.com/questions/465814/delphi-like-gui-designer-for-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!