views:

350

answers:

6

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.

+1  A: 

http://www.codeplex.com/IronPythonStudio

afftee
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.
Finglas
Thanks for the suggestion. Too bad it doesn't work on GNU/Linux.
Pablo Antonio
A: 

WxGlade. I'm not sure if you can do the click and edit code thing, but it comes pretty close.

Javier Badia
+2  A: 

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)

jetxee
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.
Matthew
Yes, Mathew is right.
jetxee
+3  A: 

I would recommend based on your needs:

  • Qt Designer
  • wxGlade

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

myle
+1 for the link to GuiProgramming. Direct link to ‘GUI Design Tools and IDEs’ subsection: http://wiki.python.org/moin/GuiProgramming#GUIDesignToolsandIDEs
jetxee
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
A: 

Qt Creator is pretty slick. It's for C++ coding only, but Qt manages to make that a bit easier.

Adam Batkin
+1  A: 

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 ...

Brendan
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.
Pablo Antonio