As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I'm attempting to convert a Python application I coded using the cmd module into a gui. Initially, I came across EasyGui. But after giving it a try, I find that it is very limited, the gui screens are not consistent, and overall not easy on the eyes. I read about IronPython (Python + .NET), but cannot find adequate documentation on it. Before I order a book from Amazon on IronPython (as this seems the most legitimate), does anyone know of a decent gui alternative for Python? Thanks!
Tkinter is in the standard library, works on all platforms, and is fairly simple and lightweight, but it looks a bit clunky.
WxPython tries to use platform widgets, so it looks a bit better, but it's a separate library. On Linux, I still find it doesn't look quite right.
PyQt is a large, powerful framework - it looks good, and you can do a lot with it, but it's more complex and a larger install.
There are plenty of others, but those are probably the most popular.
I've used libglade before to write GUIs in Python. I thought the results felt very native (as native as any GUI toolkit can under Linux), and using it was a lot like every other GUI toolkit I've used.
The best GUI's for Python are tkinter, Qt (PyQt), and wx (wxPython). Search any of those terms to learn more.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
In your opinion, what is the best way to create gui in Windows with python ?
Do you recommend PyQt for windows?
I believe the best and most documented is probably PyQT, but it depends on what you are developing. PyGTK has a really linuxy design. PyQT has one disadvantage that when compiled it is a really large file.
Advantages of Each:
PyQt
Great support for signals and slots (Docs)
Great for model and view programming (Docs)
Has a great designer (QtDesigner)
Cross platform Support
Great support for both c++ and python
Third party plugins and development tools (e.g. PyQWT, networking, etc.) Docs
PyGTK
Really nice Linux design
Good documentation (docs)
Well to do design tools (Stetic, Glade)
Supposedly great support for internationalized text
Strong graphical element platform (GTK+)
wxPython
Probably the best multiplatform support
Well documented for both python and c++
But it all comes down to the design and the development style that you prefer. I recommend you pick one and just stick with it. For windows, its probably best to use PyQt4 because of flexibility in design, code, and performance.
I prefer PyQt, there is some examples in the pyqt release directory, you can try it out. I think the effect is really cool.
I haven't tried other library so i could not compare PyQt with others . As I am familiar with Qt, the coding experience is very easy if you switch Qt to PyQt.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What are good cross platform python3 IDEs with debugger and code completion? I found some, but none of them had the 4 features at once: support for python3 syntax, code completion, integrated debugger and being free. The only one that has them is python plugin for eclipse, but unfortunatelly eclipse is so slow on my pc (you know: knock knock "who's there?" 3 secs of silence "java"), so I want something different. But I just cant find anything that is free and works on linux easily. Hope you can help me.
Eric5 is a full featured Python and Ruby editor and IDE, written in python. It is based on the cross platform Qt gui toolkit, integrating the highly flexible Scintilla editor control. It is designed to be usable as everdays' quick and dirty editor as well as being usable as a professional project management tool integrating many advanced features Python offers the professional coder. eric4 includes a plugin system, which allows easy extension of the IDE functionality with plugins downloadable from the net.
A couple of others...
Komodo Edit
PyScripter
Try Cloud9 IDE. If you have a browser, you can use it.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Although this question is very popular here in StackOverflow, after spending some time here and in the Google, I still haven't find a concrete answer on what is the most appropriate way to do SOAP consuming in Python 3.
I took a look at Does a Python 3 SOAP client module exist?, and I hope it is outdated and today some solution to this may have appeared.
I was thinking about some ideas:
Use 2to3 script to port some existing libraries to Python 3 (SOAPy, suds, etc).
Load an external module, by mixing technologies (Py3k + Jython, Py3k + Python 2.6, etc.)
Write in hardcode Python classes that corresponds to definitions of WSDL files (which implies in tight-coupling/high maintenance).
Write the software in Python 3.0, call the "python2.6-only" module functions through the execnet package. Which requires the Python 2.6 to be installed on the machine and the software written in Python3.0 to be a frozen binary.
Any ideas?
Thanks in advance
I would probably start by trying your suggested 2to3 port. For many things, it works pretty well. It would still be a day or two worth of work to convert something like suds, I imagine.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
We think about whether we should convert a quite large python web application to Python 3 in the near future.
All experiences, possible challenges or guidelines are highly appreciated.
My suggestion is that you stick with Python 2.6+, but simply add the -3 flag to warn you about incompatibilities with Python 3.0. Then you can make sure your Python 2.6 can be easily upgraded to Python 3.0 via 2to3, without actually making that jump quite yet. I would suggest you hold back at the moment, because you may at some point want to use a library and find out that it is only available for 2.6 and not 3.0; if you make sure to cleanup things flagged by -3, then you will be easily able to make the jump, but you will also be able to take advantage of the code that is only available for 2.6+ and which is not yet ready for 3.0.
For each third-party library that you use, make sure it has Python 3 support. A lot of the major Python libraries are migrated to 3 now. Check the docs and mailing lists for the libraries.
When all the libraries you depend on are supported, I suggest you go for it.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I looking for a GUI Builder for python
i know it exist, can see it in this image background
It is Glade 3, a GUI Designer for GTK+. It generates an XML file representing your GUI. You can load this GUI later using PyGTK.
Specifically, the screenshot is running a Mac OS X port of Glade 3
That's glade, it actually produces XML, which can be used with the PyGTK library in python
The GUI designer isn't "for" python, it's for gtk+ and the associated language bindings known as pygtk.
there are two gui editors available:
http://glade.gnome.org/
http://www.mono-project.com/Stetic
I use PyQt (PyQt Homepage); it is built on the QT Toolkit (http://www.qtsoftware.com/).
If you are deploying to Windows, it works well with the py2exe module (py2exe).
It's fairly straightforward to use, especially if you already have experience with the QT libraries.
The one in the screenshot is Glade.
However, there are quite a few GUI-Builders for Python, as seen on http://wiki.python.org/moin/GuiProgramming
Tkinter is one of many GUI builders available for python. I prefer it.
Gazpacho is almost a clone of Glade, but written in pure PyGTK. We (the PIDA team) are currently refurbishing it.
A python GUI builder is boa-constructor, whcih uses the WxWidgets toolkit