8

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.

Harriv
  • 6,029
  • 6
  • 44
  • 76

3 Answers3

7

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.

dF.
  • 74,139
  • 30
  • 130
  • 136
  • PyQt is now from Riverbank Software. (QT is from Nokia) – Warren P Mar 05 '10 at 17:05
  • PyQt designer is pretty good. Integrating custom widgets into the designer can be a bit of the pain for new users because the help out there isn't great (all the guides I found just didn't work; I will probably make a correct how to guide when I find time and link it here), but once you get the hang of it the designer is pretty easy to use. The only slack I have with PyQt is that every time a new widget is instantiated at runtime, the compiled C++ code has to be loaded which ofc comes with overhead; this can cause long loading times with GUIs that creates hundreds/thousands of widgets. – Lost Crotchet Jul 10 '19 at 21:51
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.

Baishampayan Ghose
  • 19,928
  • 10
  • 56
  • 60
2

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

mmattax
  • 27,172
  • 41
  • 116
  • 149