PDA

View Full Version : [SOLVED] Python - pyQT or pyGTK for windows apps



Nico-dk
February 18th, 2011, 06:15 PM
After 6 days of fiddling with Python, I now consider myself an expert ... No, not really ;)

I did spent the last 6 days getting acquainted with Python, and even though I still have a long way to go, I'd like to dabble in some GUI applications.

Before switching to Ubuntu, I created a number of HTAs (Html App), and thought it would be good training remake some of those using python and a GUI framework.

The apps I make mostly create text files dependent on user input, and the will be used by 50+ year old women ... sorry, I mean 50+ year YOUNG women. Therefpor the apps should be able to run under windows w/o too much hassle (I'll cross the bridge of making actual .exes out of them, when I get to it).

So, here I am, asking you, the experienced users, what GUI framework should I use:

pyQT or pyGTK?

pyQT should be cross platform, correct?
Haven't been able to confirm the same for pyGTK

I'm ruling TKinter out for now, since I prefer a WYSIWYG for the GUI creation.

As always, any and all feedback is greatly appreciated :)

Some Penguin
February 18th, 2011, 06:46 PM
Both exist for Microsoft Windows platforms, AFAICT.

Quite subjectively, one might judge that Qt on resembles the fairly traditional Windows GUI appearance more closely and thus might be easier to pick by your intended user base.

Nico-dk
February 18th, 2011, 10:04 PM
Thanks :)

Managed to find a (superficial) comparison between several GUI frameworks (http://stackoverflow.com/questions/3993269/pygtk-vs-pyqt-vs-wxpython-vs-tkinter). Looks like I'll take the pyQT road.

forrestcupp
February 18th, 2011, 10:49 PM
I can confirm that pyGTK works with Windows, as I've used it before.

I'd probably go the QT route, too, though.

oldfred
February 19th, 2011, 01:00 AM
I have been playing with python and wanted to learn to do some things like I used to do with MS Access.

I like the geany editor. And I have used Glade for GTK and Qt 4 Designer for QT. Once I set a screen with glade or designer I then can use my code behind the scenes. I would like to use the same code with two different front ends but my test app is pretty simple right now.

cgroza
February 19th, 2011, 02:16 AM
Why don't you take a look at wxPython too, while you are in your way to search a toolkit.

Nico-dk
February 19th, 2011, 11:35 AM
Thanks all, I might give wxPython a spin.

Found lots of good documentation on Qt, and whipped up a basic gui last night. I really like how I can create any interface in minutes, and generate the needed .py files for it too in Qt4 desginer, and then move on to the fun part; the actual coding :)

nvteighen
February 19th, 2011, 11:54 AM
Nowadays, GTK+ and Qt are almost equally powerful. There are just philosophy differences that are reflected on how the respective APIs are... and the look-and-feel, of course.