views:

904

answers:

6

Hi there,

I would like to start learning Python (zero past experience). I am a bit inclined to start with Python 3.0. However, I am not sure if at this time there exists a GUI editor that would be compatible with Python 3.0. I've tried installing Glade, but the one I've got works only with Python 2.5. What could I possibly use with Python 3.0? Any suggestions are welcomed. Thanks!

A: 

Just use whichever editor you are most comfortable with.

The "leading space as logic" and duck typing mean that there is a limited amount of syntax checking and re-factoring an editor can reasonably do (or is required!) with python source.

If you dont have a favorite editor then just use the "idle" editor which comes with most python distributions.

If you were talking about a GUI design tool then you need to choose among the several supported GUIs (Tk, WxWindows etc. etc.) before you choose your design tool.

James Anderson
I think Wx is the best (most useful, most portable) GUI library so wxFormBuilder would be the way to go.I personaly have only used wX with raw text code -- but thats just me.
James Anderson
+1  A: 

There are many useful libraries (not to mention educational material, cookbook snippets, etc.) that have yet to be ported to Python 3.0, so I recommend using Python 2.x for now (where, currently, 5 <= x <= 6). Doubly so if you're a beginner to Python. Triply so if you're actually planning on releasing some software--many systems do not ship with Python 3.0.

Python 3.0 is not radically different from the Python 2.x series; what you learn in Python 2 will very much still apply to Python 3. Searching Python 3.0 here on SO reveals many threads in which the majority declare that they're not moving to Python 3.0 anytime soon.

gotgenes
+1: don't use python 3 yet
nosklo
A: 

The only GUI toolkit currently available in Python3.0 is Tkinter, and I don't think there are any Python3.0 GUI-builders available yet.

John Fouhy
A: 

WING 3.2 beta work in python 3.

ricnar

+1  A: 

If your looking for a GUI editor, have a look at these:

  • wxFormBuilder can generate .XRC files for wxpython.
  • XRCed ships with wxpython and could do this as well.

.XRC files are xml file which describes your GUI and are not language specific. You could load these files from a Python 2.6 and a Python 3.0 without any change.

WxPython is currently available only for Python 2.6 though. I would not worry too much about converting a python 2.6 to 3.0. This is the matter of a few lines to change.

The problem with the .XRC approach is that you still need to glue these xml files with Python code. If you're a beginner this might be as tricky as writing the GUI by hand. That's the problem with WxPython anyway: I don't know any real good editor for it, have a look at this discussion

Mapad
Very nice, good find!
Alix Axel
A: 

PyQt 4.5 (released a couple of days ago) added support for Python 3

That doesn't of course devaluate gotgenes answer: most of the 3rd party libraries are just not ready yet for Python 3.

piquadrat