Is there any Visual Studio-like tool for creating GUIs for Python?

27,605

Solution 1

I would recommend based on your needs:

  • Qt Designer
  • wxGlade

Check this out: http://wiki.python.org/moin/GuiProgramming

Solution 2

For GTK+ there is Glade. Python can load interface files created with Glade. There are some tutorials on the net.

Glade

For Qt there is QtDesigner. PyQt manual covers how to use PyQt with QtDesigner.

As far as I know QtDesigner is integrated into some IDEs (e.g. Eclipse)

Solution 3

Python(x,y) includes an installation of Eclipse with PyDev and QT Designer integrated. If you configure PyUIC to run from Eclipse (see this brief HOWTO) then, once the GUI has been designed, the framework code can be generated at the push of a button.

Admittedly this is not as easy or as polished as VS and there may be problems when it comes to refactoring the GUI ...

Share:
27,605
Pablo Antonio
Author by

Pablo Antonio

Computer Science student. Currently working on my Master thesis. Interested in everything computers-related.

Updated on July 15, 2022

Comments

  • Pablo Antonio
    Pablo Antonio almost 2 years

    My girlfriend asked me if there was a tool (actually, an IDE) that would let her create her GUI visually and edit functions associated with GUI-related events with little effort.

    For example, she wants to double-click a button she just created and immediately see (and edit) the code associated with that button's on-click event. I believe this is what she does in Visual Studio.

    The toolkit doesn't matter. She just wants this funcionality.

    Is there some tool that accomplishes this?

    Thank you.

    EDIT: Made the example look bold. Seemed no one was looking at it, and it's an important requirement.

  • sastanin
    sastanin over 14 years
    +1 for the link to GuiProgramming. Direct link to ‘GUI Design Tools and IDEs’ subsection: wiki.python.org/moin/GuiProgramming#GUIDesignToolsandIDEs
  • Finglas
    Finglas over 14 years
    I'd recommend IronPython for GUIs. But NOT that program. It's out of date and not supported for current versions. Don't waste your time. Instead make a GUI in VS and use something like Eclipse to consume the form you create.
  • Pablo Antonio
    Pablo Antonio over 14 years
    Do any of those fulfill the "double-click and edit event's code" requirement? I'm taking a look at Qt Designer and I can't find that. And I don't remember wxGlade had that either. Correct me if I'm wrong.
  • Pablo Antonio
    Pablo Antonio over 14 years
    Thanks for the suggestion. Too bad it doesn't work on GNU/Linux.
  • Pablo Antonio
    Pablo Antonio over 14 years
    This answer is the best so far. However, I've tried installing Eclipse + CDT + QT Designer + QT Designer integration with Eclipse and it's been a PITA. And I'm not sure if I'm going to try this Python(x,y) because it asks me to add a new unknown repository to my Ubuntu. Also, that repository was made for Jaunty (and I have a newer version, Karmic). Anyway, all in all, this is the best answer so far.
  • Matthew
    Matthew over 14 years
    Glade is good, but it won't solve your example problem. Glade keeps the interface completely separate from the code. This keeps it portable between languages, but prevents things like your example.