943,083 Members | Top Members by Rank

View Poll Results: Which Python-GUI toolkit do you use?
wxPython 9 52.94%
PyQT 3 17.65%
tcl/Tkinter 3 17.65%
Jython 1 5.88%
IronPython 1 5.88%
Other - please state and why. 1 5.88%
Multiple Choice Poll. Voters: 17. You may not vote on this poll

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 3150
  • Python RSS
You are currently viewing page 1 of this multi-page discussion thread
Jan 18th, 2010
1

Deciding on a GUI Toolkit/Development path

Expand Post »
Hi all,

My first post here, but long time troller.
I was looking for a GUI platform to develop on and couldn't decide between wxPython, PyQT and/or IronPython or Jython.
I decided to go with wxPython after getting a couple of headaches elsewhere.
I'd really like a quick IDE to build GUI on, so I first tested out PyQT, and it gave me lots of installation issues. I first tried to download the source and install it on a 2.6x version of Python but realized that PyQT only worked on a 2.5 version for the binaries. Then I installed 2.5 and still got issues; see the image below. Code generation fail.

My feeling is that PyQT is not as well supported as the other bindings/modules.

To me, if something works well ... you should just be able to open it up run it ... and bang ... it works straight away. Like an iPhone or something ... the fact that you have to sort out all these packages and work around all these installs is a pain the ass really. so i decided not to go with PyQT.

I went to this site here also: http://www.awaretek.com/toolkits.html
to help you decide which gui toolkit was most suitable. for me, ease of use, documentation and popularity was most important ... and it kept showing wxPython as the most ideal solution for me.
I use python for making productivity apps, and writing robust programs with little code and speed is of utmost importance. therefore going with something which has lots of support and documentation is important as well. not sure on the facts, but wxPython is one of the most, if not THE most supported gui toolkits available.

i guess just doing gui via pure coding is okay if you cut and paste, not that long really, especially if youre coding on python.

anyways ... one thing i found out about these gui toolkit ide's was that they don't support all the sorts of form and widget libraries that are available. and that wxPython has a greater/larger library.
I was working with PyQT and they didn't even have a toolbar in the IDE GUI toolkit ... see the second attached image below.

So that sux. As guido von rosso (i think that's his name) said ... wxPython is probably the best out there right now if you're not afraid to code.

Furthermore, there is a greater ability to customize if you're building GUI at the code level.

Besides, there is a large community base out there for wx, and lots of documentation ... and best thing of all ... wxpython just works!!! i got a dialogue with menus and toolbars up and running in about 1 hour and able to view the code and all ... whereas all the other toolkits took longer ... at least a couple of hours and even a day or more with some.

I will try out Jython and IronPython. However my concerns about these two pathways is that they don't support specific modules/packages on their platforms that are workable on Python 2.6+ ... for example ... I use the win32com packages so that I can access msft office objects ... i'm not sure whether a piece of code that has a bit of python, a bit of visual basic and a bit of java in it would compile and run properly and whether there are cross platform issues.

Is ironpython hard to work? i was trying compile the code and run it but the way in which you do it seemed primitive ... you had to specify the path directory of the python interpreter each time as well as the project file location.

so at the end of the day ... wxpython was the one for me.

If anyone has any tips on whether there are alternatives on how to produce rapid fast GUI's that offer advanced features and documentation/support please let me know. I'm open to alternatives.

Cheers.
Attached Thumbnails
Click image for larger version

Name:	toolbar-pythonGUI.jpg
Views:	407
Size:	9.8 KB
ID:	13287   Click image for larger version

Name:	codegenerationfail.jpg
Views:	51
Size:	71.4 KB
ID:	13288  
Similar Threads
Reputation Points: 25
Solved Threads: 0
Newbie Poster
cascade3891 is offline Offline
15 posts
since Jan 2010
Jan 18th, 2010
0
Re: Deciding on a GUI Toolkit/Development path
Jython/IronPython aren't toolkits for GUI rather implementations of Python in Java/DotNet

I use wxPython anyway!
Reputation Points: 462
Solved Threads: 392
Senior Poster
evstevemd is offline Offline
3,681 posts
since Jun 2007
Jan 18th, 2010
1
Re: Deciding on a GUI Toolkit/Development path
The only blemish I can see with wxPython is that it will not work with Python3 at the moment.

PyQT works with Python3, but may have licensing problems down the road.

Tkinter is pretty much cross platform and comes with Python2 and Python3. Its widgets are rather basic and look a little homely on a Windows machine, but look great on Apple's OS.

Ironpython 2.6 is a close equivalent of Python 2.6 with the added advantage of having access to CLR and the MS .NET Framework. It can use the Framework's library as a GUI toolkit. For a good example see:
http://www.daniweb.com/forums/post11...ml#post1104553
Last edited by vegaseat; Jan 18th, 2010 at 12:02 pm. Reason: ip
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,789 posts
since Oct 2004
Jan 19th, 2010
0
Re: Deciding on a GUI Toolkit/Development path
Click to Expand / Collapse  Quote originally posted by vegaseat ...
The only blemish I can see with wxPython is that it will not work with Python3 at the moment.
True, that turns me down, haven't even tried to mess with Py3k


Click to Expand / Collapse  Quote originally posted by vegaseat ...
PyQT works with Python3, but may have licensing problems down the road.
There is Nokia Project that is interesting. I heard from wxPy mailing list

Click to Expand / Collapse  Quote originally posted by vegaseat ...
Tkinter is pretty much cross platform and comes with Python2 and Python3. Its widgets are rather basic and look a little homely on a Windows machine, but look great on Apple's OS.
Haven't tried it. Don't know why it dosn't fit my brain. Have anythig changed from 2.x?

Click to Expand / Collapse  Quote originally posted by vegaseat ...
Ironpython 2.6 is a close equivalent of Python 2.6 with the added advantage of having access to CLR and the MS .NET Framework. It can use the Framework's library as a GUI toolkit.
Uh! I forgot that there are alot of classes in .Net farmework
Reputation Points: 462
Solved Threads: 392
Senior Poster
evstevemd is offline Offline
3,681 posts
since Jun 2007
Jan 21st, 2010
0
Re: Deciding on a GUI Toolkit/Development path
Hi.
I have always used wx, but if you can't use it for any reason, you'll always have tkinter.
If your project is simple, you can use easygui, really easy to use an tkinter based.
For wx gui design, you can use Boa Constructor or wx-glade.
Have some options that will make your live easy:
python-card
dabo
And some others wx based.
Cheers.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
Pupo is offline Offline
18 posts
since Sep 2005
Jan 21st, 2010
0
Re: Deciding on a GUI Toolkit/Development path
Starting with Python31 tkinter now includes the tile extension ttk for some extra widgets, see:
http://www.daniweb.com/forums/post921416-25.html
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,789 posts
since Oct 2004
Jan 21st, 2010
1
Re: Deciding on a GUI Toolkit/Development path
I use wxPython + wxGlade. It lets me first focus on the design then I can worry about the code. Great for RAD!
Reputation Points: 10
Solved Threads: 19
Junior Poster
ShadyTyrant is offline Offline
120 posts
since Nov 2009
Jan 22nd, 2010
0
Re: Deciding on a GUI Toolkit/Development path
I use wxPython + wxGlade. It lets me first focus on the design then I can worry about the code. Great for RAD!
If you use the SPE (Stani's Python Editor) IDE then wxGlade (also Blender) is integrated into that program.
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,789 posts
since Oct 2004
Jan 22nd, 2010
0
Re: Deciding on a GUI Toolkit/Development path
Click to Expand / Collapse  Quote originally posted by vegaseat ...
If you use the SPE (Stani's Python Editor) IDE then wxGlade (also Blender) is integrated into that program.
I did not know that, I will have to check it out.
Reputation Points: 10
Solved Threads: 19
Junior Poster
ShadyTyrant is offline Offline
120 posts
since Nov 2009
Jan 22nd, 2010
0
Re: Deciding on a GUI Toolkit/Development path
I like to use tkinter for some real quick stuff, but use mostly wxPython and sometimes Pyqt.

Good Pyqt examples are hard to find. My biggest source of good Pyqt info is:
http://www.riverbankcomputing.co.uk/...l/classes.html
Reputation Points: 961
Solved Threads: 211
Nearly a Posting Maven
sneekula is offline Offline
2,413 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Multiple conditionals at once using 'and' ... is this okay??
Next Thread in Python Forum Timeline: Moving whole text between two .doc files





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC