PyGTK or wxPython (not a flame war) on Windows

T

TPJ

GUI's etc: PyGtk on Windows
"(...) So if someone develops mainly for X and just wants to make sure
that it is not impossible to run on Windows, you can use PyGTK. (...)",
July 2nd, 1999

pyGTK on Windows
"(...)
can i use pyGTK under
Windows???

It's probably doable (...) but not worthy in my oppinion (...). A much
better choice is wxPython (...)"

"(...)even if it is made to work under windows, pygtk would not have a
windows look and feel. wxPython is probably your best bet (...)"

pygtk vs. wxPython
4. "(...) If you want cross-platform capabilities (...) then go
wxWindows." May 17 2002

7. "(...) The pygtk (and gtk port in general) does not yet support
threading on windows. (...) GTK 2.0 is supposed to fix it but support
isn't available *yet*. (...)" May 17 2002

PyGTK vs. wxPython
7. "(...) wxPython would indeed be a better choice if your applications
are only to run on a certain infamous legacy operating system from the
Pacific Northwest. The PyGTK is a better choice if you are writing for
Linux and want your application to also be able to run on windows.
(...)" Apr 25

11. "(...) I'm using wxPython because GTK for windows wasn't ready
three years ago when I initially had to write my first Windows
application. If I evaluated both of them again today, I might choose
GTK, and I might not." Apr 27



In the nearest future I will have to decide what to use: PyGTK or
wxPython. I like those both APIs. wxPython has more widgets, but PyGTK
seems to be faster. I can use them both for free (it's very important).
My only concern is that although I'm doing development on Linux, I'd
like to make my application runnable on Windows as well (Py2Exe). I'd
like to choose PyGTK (because of its rich documentation), but I'm not
sure if PyGTK is stable on Windows... For now I know that wxPython runs
well on Windows.

For now I haven't experienced any problems with wxPython on Linux
(Slackware, Aurox /Polish RH-like distro/). I used wxPython on Linux,
but I stopped because of its poor documentation (mainly C++ docs, not
Python docs). But recently I noticed this documentation got better
(*much* better!).

How well does PyGTK run on Windows (98, 2K, XP)? How stable is it? Will
I be able to make an executable (using Py2Exe) of an application that
uses PyGTK?
 
S

Sybren Stuvel

TPJ enlightened us with:
I'd like to choose PyGTK (because of its rich documentation), but
I'm not sure if PyGTK is stable on Windows... For now I know that
wxPython runs well on Windows.

Don't forget that wxPython looks like Mac on a Mac. That's important
too :)

Sybren
 
F

Fuzzyman

TPJ said:
GUI's etc: PyGtk on Windows
"(...) So if someone develops mainly for X and just wants to make sure
that it is not impossible to run on Windows, you can use PyGTK. (...)",
July 2nd, 1999

pyGTK on Windows
"(...)

It's probably doable (...) but not worthy in my oppinion (...). A much
better choice is wxPython (...)"

"(...)even if it is made to work under windows, pygtk would not have a
windows look and feel. wxPython is probably your best bet (...)"

pygtk vs. wxPython
4. "(...) If you want cross-platform capabilities (...) then go
wxWindows." May 17 2002

7. "(...) The pygtk (and gtk port in general) does not yet support
threading on windows. (...) GTK 2.0 is supposed to fix it but support
isn't available *yet*. (...)" May 17 2002

PyGTK vs. wxPython
7. "(...) wxPython would indeed be a better choice if your applications
are only to run on a certain infamous legacy operating system from the
Pacific Northwest. The PyGTK is a better choice if you are writing for
Linux and want your application to also be able to run on windows.
(...)" Apr 25

11. "(...) I'm using wxPython because GTK for windows wasn't ready
three years ago when I initially had to write my first Windows
application. If I evaluated both of them again today, I might choose
GTK, and I might not." Apr 27



In the nearest future I will have to decide what to use: PyGTK or
wxPython. I like those both APIs. wxPython has more widgets, but PyGTK
seems to be faster. I can use them both for free (it's very important).
My only concern is that although I'm doing development on Linux, I'd
like to make my application runnable on Windows as well (Py2Exe). I'd
like to choose PyGTK (because of its rich documentation), but I'm not
sure if PyGTK is stable on Windows... For now I know that wxPython runs
well on Windows.

For now I haven't experienced any problems with wxPython on Linux
(Slackware, Aurox /Polish RH-like distro/). I used wxPython on Linux,
but I stopped because of its poor documentation (mainly C++ docs, not
Python docs). But recently I noticed this documentation got better
(*much* better!).

How well does PyGTK run on Windows (98, 2K, XP)? How stable is it? Will
I be able to make an executable (using Py2Exe) of an application that
uses PyGTK?


I use wxPython through Wax - Wax makes it nice and easy. Note that
wxPython doesn't have a completely native look and feel on Windoze, but
it's pretty good.

I've never programmed with pygtk - *but* I did play with Gajim (?) a
Jabber client written with pygtk. The look and feel isn't native
eaither - but it's very classy. It made me want to learn GTK ! I'll
probably stick with Wax though. Gajim ahs a version bundled with py2exe
- which definitley works. The only slight downer is that the user has
to install the GTK+ runtime. (The wealth of chociues makes this
*slightly* confusing for the complete noob).

Best Regards,

Fuzzy
http://www.voidspace.org.uk/python
 
D

Dave Cook

7. "(...) The pygtk (and gtk port in general) does not yet support
threading on windows. (...) GTK 2.0 is supposed to fix it but support
isn't available *yet*. (...)" May 17 2002

Pretty sure this hasn't been the case for a long time. The current stable
version of gtk is 2.6.
sure if PyGTK is stable on Windows... For now I know that wxPython runs
well on Windows.

I've used pygtk with success on windows. I suggest installing the gladewin
package and pygtk, then perhaps hacking some of the demos in the pygtk
distro.

http://gladewin32.sourceforge.net/index.php
http://www.pcpm.ucl.ac.be/~gustin/win32_ports/

One advocacy point: There are complete reference docs, an extensive
tutorial, and a constantly evolving FAQ for pygtk.

One point against: requires X11 on a Mac; definitely not native there,
though that's where I do a lot of my pygtk development.
I be able to make an executable (using Py2Exe) of an application that
uses PyGTK?

Yes. http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq21.005.htp

Dave Cook
 
J

Jarek Zgoda

TPJ napisa³(a):
In the nearest future I will have to decide what to use: PyGTK or
wxPython. I like those both APIs. wxPython has more widgets, but PyGTK
seems to be faster. I can use them both for free (it's very important).
My only concern is that although I'm doing development on Linux, I'd
like to make my application runnable on Windows as well (Py2Exe). I'd
like to choose PyGTK (because of its rich documentation), but I'm not
sure if PyGTK is stable on Windows... For now I know that wxPython runs
well on Windows.

For now I haven't experienced any problems with wxPython on Linux
(Slackware, Aurox /Polish RH-like distro/). I used wxPython on Linux,
but I stopped because of its poor documentation (mainly C++ docs, not
Python docs). But recently I noticed this documentation got better
(*much* better!).

How well does PyGTK run on Windows (98, 2K, XP)? How stable is it? Will
I be able to make an executable (using Py2Exe) of an application that
uses PyGTK?

PyGTK runs reasonably well on Win32, although not as good as wx. On
linux situation is reversed -- wx runs acceptably well, in contrast to
PyGTK which works like a charm.

PyQt works equally well on both systems.
 
N

Neil Hodgson

One thing I don't like with GTK+ on Windows is that it uses GTK+
file dialogs rather than system file dialogs. wxWidgets uses file
dialogs that appear very similar to the system dialogs. Depends on your
customers but I don't think this is reasonable for most applications.
http://www.scintilla.org/GtkFile.png

Neil
 
M

Marek Kubica

Hello!
How well does PyGTK run on Windows (98, 2K, XP)? How stable is it? Will
I be able to make an executable (using Py2Exe) of an application that
uses PyGTK?

I _do_ like PyGTK on Windows. It works without problems.
You can find a ready to use py2exe script on
http://www.pythonwiki.de/PyGtk. You could also bundle the runtime DLLs with
your py2exe'd application, but I have never done this. You could try doing
this like described here:
http://aspn.activestate.com/ASPN/Mail/Message/py2exe-users/2476686 (use the
setup.py script from the wiki and start at (2) in the mail).

HTH.

greets,
Marek

PS: Yes, I admit it is harder than py2exe + wxPython but I still like
PyGTK.
 
T

TPJ

I've used pygtk with success on windows. (...)
[will] I be able to make an executable (using Py2Exe) of an application
that uses PyGTK?

Yes.

So PyGTK is now my favourite. Better documentation, runs on Linux and
Windows, the possibility to make an executable program with Py2Exe.
It's enough for me.
One point against: requires X11 on a Mac; definitely not native there,
though that's where I do a lot of my pygtk development.

I suppose that 95% of my application's users will work on Win. The rest
will work on *nix. So my primary concern is PC world.

AFAIK PyGTK doesn't look native on Win as well, but I don't care.
 
T

TPJ

PyQt works equally well on both systems.

I believe you. The problem is I don't like GPL.
 
T

TPJ

Thanks a lot!

Now I know I can choose PyGTK. I really like it because of its rich
documentation.
You could also bundle the runtime DLLs with your py2exe'd application

That's great. I think my clients will appreciate a single one
executable.
 
M

Marek Kubica

Hello!
AFAIK PyGTK doesn't look native on Win as well, but I don't care.
It does have a nearly-native look and feel:
http://gtk-wimp.sourceforge.net/screenshots/
And yes, the theme adjusts itself to Windows XP themes, so GTK+ apps look
nearly like any other Windows Program. The native look and feel is not as
good as the look and feel of wx but still really _much_ better than older
versions of GTK.

This is done by a theme engine.. you can find it in the gladewin32 package.

greets,
Marek
 
T

Torsten Bronger

Hallöchen!

Marek Kubica said:
Hello!
AFAIK PyGTK doesn't look native on Win as well, but I don't care.

[...] The native look and feel is not as good as the look and feel
of wx but still really _much_ better than older versions of GTK.

Is PyGTK more Pythonic by the way? I had a look at wxPython
yesterday and didn't like that it has been brought into the Python
world nearly unchanged. You can see its non-Python origin clearly.
How does PyGTK feel in this respect?

Tschö,
Torsten.
 
M

Marek Kubica

Hi!

Am Sun, 24 Jul 2005 19:47:30 +0200 schrieb Torsten Bronger:
Is PyGTK more Pythonic by the way? I had a look at wxPython
yesterday and didn't like that it has been brought into the Python
world nearly unchanged. You can see its non-Python origin clearly.
How does PyGTK feel in this respect?
Well.. I'd say, PyGTK is still quite like GTK in C. There are some nice
features like iterators in treeviews but some things are IMHO unneccesary
difficult and much more elegant in wx.

I have started GUIs in Python with wx, but after a short time I was annoyed
how many things were buggy. I don't know why, but I fell from one bug to
the other while programming one application. Then, I tried GTK on Windows,
because I know GTK+ 2 a bit liked it. First I was very impressed, the
documentation (Tutorial + Reference + FAQ) was after wxPy 2.4.x _very_
impressive and things which were difficult in wxPy were easy in PyGTK. But
after some time I realized some other things were complicated in PyGTK.

You see, there is no non-plus-ultra GUI library and my best advice is to
test it yourself to see which one fits your needs best.

I hope a Qt4 compatible PyQt will be released soon, I'm curious about the
new Qt4, which is free for GPL-only software on Windows.

greets,
Marek
 
T

Torsten Bronger

Hallöchen!

Marek Kubica said:
[...]

I have started GUIs in Python with wx, but after a short time I
was annoyed how many things were buggy. I don't know why, but I
fell from one bug to the other while programming one application.

I'm very suprised. wxPython is still that buggy? I read reports
from 2000 about such observations, but they tried wxPython in a
non-standard way, and the project has had 5 years to become more
stable after all. Besides, wxPython prepares for being included
into the standard distribution.

What did you do?

Tschö,
Torsten.
 
B

Bryan

Torsten said:
Besides, wxPython prepares for being included
into the standard distribution.

wow, i've never heard this said so explicitly. is there a reference link
backing up this statement? i really really hope this is true. i'm very much in
favor to see wx included in the standard distrubution.

bryan
 
P

Peter Decker

Is PyGTK more Pythonic by the way? I had a look at wxPython
yesterday and didn't like that it has been brought into the Python
world nearly unchanged. You can see its non-Python origin clearly.
How does PyGTK feel in this respect?

There are several projects that have as their goal to wrap wxPython
and make it more Pythonic. IMO, the best choice now is Dabo, which is
being actively developed and improved. There is also Wax, which I got
interested a while ago, but it seems to be the work of a single author
who only works on it when he has a personal need.

I've been doing some development work in Dabo, even though I don't
currently need their database integration. The UI layer is very
Pythonic, and I much prefer writing code in Dabo than plain wxPython.
 
D

Dave Cook

Is PyGTK more Pythonic by the way?

I find it more Pythonic than "raw" wxpython. However, the API still has the
fingerprints of C programmers all over it. Compare the gtk's clunky
treemodel/treeview API to Cocoa's elegant delegates.

There is a higher level interface for pygtk called kiwi:

http://async.com.br/projects/kiwi/

Dave Cook
 
P

Paul Rubin

I've had miserable experiences trying to use WxPython or GTK under
both RH9 and Fedora Core 3. There is some version skew between the
installed versions of GTK and the WxWidgets on the distro site. I
made some progress by installing an old version of GTK but there was
still some problem. I decided it wasn't worth the hassle.

Unless there's some serious importance to making your gui very slick,
I think the only Python gui toolkit worth considering is Tkinter. It
has drawbacks but it's the one that seems to work the most
consistently with the least hassle.
 
T

Torsten Bronger

Hallöchen!

Bryan said:
wow, i've never heard this said so explicitly. is there a
reference link backing up this statement? i really really hope
this is true. i'm very much in favor to see wx included in the
standard distrubution.

As far as i know, there is nothing official. But I've read several
times that it's the most likely candidate for a seconds GUI system
for being included.

Tschö,
Torsten.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top