Discussion:
wxPython or TKinter?
D-Man
2001-05-18 15:41:41 UTC
Permalink
On Fri, May 18, 2001 at 04:37:43PM +0100, Brian Kelley wrote:
|
| Glade has been ported to windows. Unfortunately the windows version of pygtk
| doesn't seem to support libglade yet. This should be a minor fix. I'm

Does libglade itself build/run on windows? It might be a bigger
problem than it seems.

Even so, there are tools to generate python code from the Glade
description thus eliminating the need for libglade. Libglade is
really cool, though.

-D
Brian Kelley
2001-05-18 15:37:43 UTC
Permalink
In article <9e0qif02on3 at enews1.newsguy.com>,
"Frank Miles" <fpm at u.washington.edu> wrote in message
...
slow. All GUI work is done on a Windows machine.
...
You may also wish to consider pygtk, using glade as your GUI designer.
*blink* do pygtk and glade work on Windows...?
Oooopppss. Glade, to the best of my knowledge, hasn't been ported yet.
Sorry!
Glade has been ported to windows. Unfortunately the windows version of pygtk
doesn't seem to support libglade yet. This should be a minor fix. I'm
looking into it, but that being said, I've been looking into it since I gave
my Python 9 tutorial :)

If you need/desire a list of links you can get it from the Python 9 Tutorial
(it is in powerpoint) located here
http://www.bioreason.com/~brian/GladeBase.html
-frank
--
jason petrone
2001-05-17 15:11:09 UTC
Permalink
I have played with wxPython and Boa contructor. I stayed away from TKinter
because I was told that since it has run two interpreters, it is rather
slow. All GUI work is done on a Windows machine.
If I was writing a windows only GUI, I would use the win32gui module. Its
more consistent with normal windows applications(unlike Tk). The only
drawback is its lower level interfaces.

-jp
unknown
2001-05-18 02:36:20 UTC
Permalink
"Robin Dunn" <robin at stop.spam.alldunn.com> wrote in message
wxPython is wonderful and all that, but execution is very slow. I tried
py2exe, but 1. output file is huge 2. it is also slow. I think Tkinter
is
more mainstream. Are there distinct advantages? Is there a way to speed
up
wxPython?
Startup time is slow. Once everything is loaded then it is fairly fast.
I'm working on a couple ideas for speeding up the load-time, one of which
will be in the next release, the other may be coming in the release after
that if I can get it working.
--
Robin Dunn
Software Craftsman
robin at AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!
Looking forward to the next release, as I think wxPython is already great.
Hands down - wxPython is my recommendation.
Paul Jackson
2001-05-18 21:14:39 UTC
Permalink
|> Hands down - wxPython is my recommendation.

The main reason I know of to prefer Tkinter is that it runs
on more systems, including Macs and most any Unix variant.
For example, on the Irix box I am typing from right now, I
have Tkinter, but not wxPython.

This topic has, not surprisingly, come up before. I recommend
you search Google (especially groups.google.com - Deja) for
--
I won't rest till it's the best ...
Manager, Linux System Software
Paul Jackson <pj at sgi.com> 1.650.933.1373
Frank Miles
2001-05-17 17:22:36 UTC
Permalink
In article <9e0qif02on3 at enews1.newsguy.com>,
"Frank Miles" <fpm at u.washington.edu> wrote in message
...
slow. All GUI work is done on a Windows machine.
...
You may also wish to consider pygtk, using glade as your GUI designer.
*blink* do pygtk and glade work on Windows...?
Oooopppss. Glade, to the best of my knowledge, hasn't been ported yet.
Sorry!

-frank
--
D-Man
2001-05-17 18:15:52 UTC
Permalink
On Thu, May 17, 2001 at 05:22:36PM +0000, Frank Miles wrote:
| In article <9e0qif02on3 at enews1.newsguy.com>,
| Alex Martelli <aleaxit at yahoo.com> wrote:
| >"Frank Miles" <fpm at u.washington.edu> wrote in message
| >news:9e0ogt$lti$1 at nntp6.u.washington.edu...
| > ...
| >> >slow. All GUI work is done on a Windows machine.
| > ...
| >> You may also wish to consider pygtk, using glade as your GUI designer.
| >
| >*blink* do pygtk and glade work on Windows...?
|
| Oooopppss. Glade, to the best of my knowledge, hasn't been ported yet.
| Sorry!

Yes they do. See

http://hans.breuer.org/ports/default.htm
http://members.aol.com/suboner/code/Gtk/glade.html

:-).

-D
Hanna Joo
2001-05-17 21:21:32 UTC
Permalink
Hi

I have played with wxPython and Boa contructor. I stayed away from TKinter
because I was told that since it has run two interpreters, it is rather
slow. All GUI work is done on a Windows machine.

wxPython is wonderful and all that, but execution is very slow. I tried
py2exe, but 1. output file is huge 2. it is also slow. I think Tkinter is
more mainstream. Are there distinct advantages? Is there a way to speed up
wxPython?

I would appreciate input from all those who have experience in Tkinter and
wxPython.
Frank Miles
2001-05-17 14:51:09 UTC
Permalink
In article <990102611.252860 at nntp01.uskonet.com>,
Hi
I have played with wxPython and Boa contructor. I stayed away from TKinter
because I was told that since it has run two interpreters, it is rather
slow. All GUI work is done on a Windows machine.
wxPython is wonderful and all that, but execution is very slow. I tried
py2exe, but 1. output file is huge 2. it is also slow. I think Tkinter is
more mainstream. Are there distinct advantages? Is there a way to speed up
wxPython?
I would appreciate input from all those who have experience in Tkinter and
wxPython.
You may also wish to consider pygtk, using glade as your GUI designer.

-frank
--
Alex Martelli
2001-05-17 15:26:07 UTC
Permalink
"Frank Miles" <fpm at u.washington.edu> wrote in message
news:9e0ogt$lti$1 at nntp6.u.washington.edu...
...
slow. All GUI work is done on a Windows machine.
...
You may also wish to consider pygtk, using glade as your GUI designer.
*blink* do pygtk and glade work on Windows...?


Alex
Robert Amesz
2001-05-17 23:29:34 UTC
Permalink
Hi
I have played with wxPython and Boa contructor. I stayed away from
TKinter because I was told that since it has run two interpreters,
it is rather slow. All GUI work is done on a Windows machine.
wxPython is wonderful and all that, but execution is very slow.
Are you sure it's the wxPython stuff that's slowing your program down?
The GUI classes themselves are handled by compiled C++ code, and that
is pretty fast. Even on slower machines that's not likely to be the
bottleneck.
I tried py2exe, but 1. output file is huge
Duh! Py2exe just packs all your files (including the Python interpreter
and wxPython and other libraries, including .dll's) into a single file
so the program can be used on machines without Python and used
libraries. Neat for distribution, not very useful otherwise.
2. it is also slow.
Duh2! (See above.)
I think Tkinter is more mainstream. Are there distinct advantages? Is
there a way to speed up wxPython?
Somebody benchmarked wxPython and Tkinter a while back in this group,
and IIRC wxPython was - depending on the benchmark - between 3 and 7
times faster. So I don't think switching to Tkinter is going to solve
your speed problem.

One of the differences between wxPython and Tkinter is that the former
uses native widgets, when possible. This means, for instance, that the
wxWindows "Open File" dialog will be the familiar Windows dialog when
the program runs under Windows.


Robert Amesz
Fredrik Lundh
2001-05-18 03:13:50 UTC
Permalink
Post by Robert Amesz
I think Tkinter is more mainstream. Are there distinct advantages? Is
there a way to speed up wxPython?
Somebody benchmarked wxPython and Tkinter a while back in this group,
and IIRC wxPython was - depending on the benchmark - between 3 and 7
times faster. So I don't think switching to Tkinter is going to solve
your speed problem.
Widgets written for the Tkinter 3000 WCK [1] can be up to 50 times
faster than code using standard Tk widgets. (That would mean that
Tkinter is 7 to 16 times faster than wxPython ;-)
Post by Robert Amesz
One of the differences between wxPython and Tkinter is that the former
uses native widgets, when possible. This means, for instance, that the
wxWindows "Open File" dialog will be the familiar Windows dialog when
the program runs under Windows.
Same goes for the Tkinter "Open File" dialog, of course.

Cheers /F

1) http://www.pythonware.com/products/tkinter/tkinter3000.htm
David Bolen
2001-05-17 15:39:38 UTC
Permalink
wxPython is wonderful and all that, but execution is very slow. I tried
py2exe, but 1. output file is huge 2. it is also slow. I think Tkinter is
more mainstream. Are there distinct advantages? Is there a way to speed up
wxPython?
In my experience, wxPython itself (in terms of the interface) performs
very well wherever I've tried it. Since the actual UI elements are in
most cases, the native controls themselves, they operate just as when
used in any other application. In what respect is the execution slow
for you and are you sure that the performance is related to the
interface and not to something else that the code is doing?

The biggest wart that I see currently is that the wxPython DLL is a
monolithic beast that can impose a number of seconds worth of startup
time penalty just to get loaded, but other than that it has behaved as
well as any other native application for me.

There are, of course, some behaviors that can lead to slower
performance (for example, constantly appending to a multi-line text
entry field requiring it to scroll as the updates are made) but
they're pretty much the same sorts of limitations you'd find no matter
what language was manipulating the control.

Also, if you are doing a bunch of processing in the same thread that
has to process events, you can make your UI sluggish very easily, but
again that's a common problem with event driven UI programs not not
Python/wxPython specific.

--
-- David
--
/-----------------------------------------------------------------------\
\ David Bolen \ E-mail: db3l at fitlinxx.com /
| FitLinxx, Inc. \ Phone: (203) 708-5192 |
/ 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
\-----------------------------------------------------------------------/
Robin Dunn
2001-05-17 21:45:17 UTC
Permalink
wxPython is wonderful and all that, but execution is very slow. I tried
py2exe, but 1. output file is huge 2. it is also slow. I think Tkinter is
more mainstream. Are there distinct advantages? Is there a way to speed up
wxPython?
Startup time is slow. Once everything is loaded then it is fairly fast.
I'm working on a couple ideas for speeding up the load-time, one of which
will be in the next release, the other may be coming in the release after
that if I can get it working.


--
Robin Dunn
Software Craftsman
robin at AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!
Bill Bell
2001-05-17 16:40:25 UTC
Permalink
"Hanna Joo" <hanna at chagford.com>
I have played with wxPython and Boa contructor. I stayed away from
TKinter because I was told that since it has run two interpreters, it
is rather slow. All GUI work is done on a Windows machine.
wxPython is wonderful and all that, but execution is very slow. I
tried py2exe, but 1. output file is huge 2. it is also slow. I think
Tkinter is more mainstream. Are there distinct advantages? Is there a
way to speed up wxPython?
I would appreciate input from all those who have experience in Tkinter
and wxPython.
If you have access to Hammond and Robinson, Python
Programming on Win32 (O'Reilly) there's a chapter that compares
those two plus PythonWin. Mind you, I don't think it goes beyond
what you've said in your query.
Continue reading on narkive:
Loading...