Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

GUI Frameworks in Python?
I've recently been trying out various different GUI frameworks in Python and
was wondering if I could get your input on the pros and cons of the
different ones...

wxPython: I love the programming side of wxPython, but I find it's just so
slow to initialise in the first place.

Tkinter: While it's fast to load up, the syntax has never really appealed to
me

GTK: Unknown - I'm looking into it today

Qt: I have yet to manage to install it on my system

Anything else?


Hugh Macdonald



Report this thread to moderator Post Follow-up to this message
Old Post
Hugh Macdonald
03-30-04 07:35 AM


Re: GUI Frameworks in Python?
Hugh Macdonald wrote:

> I've recently been trying out various different GUI frameworks in Python a
nd
> was wondering if I could get your input on the pros and cons of the
> different ones...
>
> wxPython: I love the programming side of wxPython, but I find it's just so
> slow to initialise in the first place.

I don't understand this, though it's been mentioned before.

On my machine, launching the wxPython Demo app takes roughly 0 seconds
before the splash screen appears, and I can immediately click on it
and get the app itself, for a total launch time of: immeasurably fast.

I would think, given the size of the demo itself, that just about
anything it does should be representative of other apps on the
same machine.

For the record, running WinXP AMD 2200 with adequate RAM etc.

Are these reports of slow wxPython startup only coming from really old
machines or something?

-Peter

Report this thread to moderator Post Follow-up to this message
Old Post
Peter Hansen
03-30-04 08:36 AM


Re: GUI Frameworks in Python?
Peter Hansen wrote:
> ...
> I don't understand this, though it's been mentioned before.
>
> On my machine, launching the wxPython Demo app takes roughly 0 seconds
> before the splash screen appears, and I can immediately click on it
> and get the app itself, for a total launch time of: immeasurably fast.

On my machine (WinXP Pro, AMD 2400, 512MB) it takes a little over three
seconds before the splash shows and maybe another two seconds for the
main frame to show. It takes a little over a second to load IDLE.

greg

Report this thread to moderator Post Follow-up to this message
Old Post
Greg Krohn
03-30-04 08:36 AM


Re: GUI Frameworks in Python?
Greg Krohn wrote:

> On my machine (WinXP Pro, AMD 2400, 512MB) it takes a little over three
> seconds before the splash shows and maybe another two seconds for the
> main frame to show. It takes a little over a second to load IDLE.

Roughly the same here: 2-3 seconds for the Demo and my own wxPython app to
start on a Mac G5. Around 3 seconds on my Pentium II 333 MHz with Linux and
Win2000 as well - you don't need a GHz CPU to create a window with Python.
The only limitation I can think of is limited memory so the OS needs to swap
to free some space first. CPU speed is not a serious factor.


I personally consider wxPython the best choice for a Python GUI. Tkinter
apps look too alien to the common Windows enduser. Of course that depends on
the target audience and might be an issue or not.

Peter

Report this thread to moderator Post Follow-up to this message
Old Post
Peter Strempel
03-30-04 08:36 AM


Re: GUI Frameworks in Python?
pyGTK is also a good GUI frameworks but it's not available now for windows
platform. I suppose it's its most important shortage.

Phipps
"Hugh Macdonald" <HughMacdonald@brokenpipefilms.com> wrote in message
news:mailman.102.1080629227.20120.python-list@python.org...
> I've recently been trying out various different GUI frameworks in Python
and
> was wondering if I could get your input on the pros and cons of the
> different ones...
>
> wxPython: I love the programming side of wxPython, but I find it's just so
> slow to initialise in the first place.
>
> Tkinter: While it's fast to load up, the syntax has never really appealed
to
> me
>
> GTK: Unknown - I'm looking into it today
>
> Qt: I have yet to manage to install it on my system
>
> Anything else?
>
>
> Hugh Macdonald
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Phipps Xue
03-30-04 09:44 AM


Re: GUI Frameworks in Python?
On Tue, 30 Mar 2004 16:11:55 +0800
"Phipps Xue" <phipps.xue@sap.com> wrote:

> pyGTK is also a good GUI frameworks but it's not available now for
> windows platform. I suppose it's its most important shortage.

I'm developing for Linux, so that's less of an issue for me....  Although I 
did check out the pyGTK module we've got installed here at work and it seems
 very slightly different from the version in the pyGTL tutorials(mainloop() 
instead of main_loop(), Gtk
Window() instead of Window()...)

--
Hugh Macdonald
The Moving Picture Company


Report this thread to moderator Post Follow-up to this message
Old Post
Hugh Macdonald
03-30-04 10:44 AM


Re: GUI Frameworks in Python?
Hugh Macdonald wrote:
> I've recently been trying out various different GUI frameworks in Python a
nd
> was wondering if I could get your input on the pros and cons of the
> different ones...
>
> wxPython: I love the programming side of wxPython, but I find it's just so
> slow to initialise in the first place.
>
> Tkinter: While it's fast to load up, the syntax has never really appealed 
to
> me
>
> GTK: Unknown - I'm looking into it today

I have to recommend GTK, especially in combination with libglade.
I've a presentation and a couple of sample apps here:
http://www.pixelbeat.org/talks/pygtk

Pádraig.

Report this thread to moderator Post Follow-up to this message
Old Post
P@draigBrady.com
03-30-04 10:44 AM


Re: GUI Frameworks in Python?
"Hugh Macdonald" <HughMacdonald@brokenpipefilms.com> writes:

> I've recently been trying out various different GUI frameworks in Python a
nd
> was wondering if I could get your input on the pros and cons of the
> different ones...
>
> wxPython: I love the programming side of wxPython, but I find it's just so
> slow to initialise in the first place.
>
> Tkinter: While it's fast to load up, the syntax has never really appealed 
to
> me
>
> GTK: Unknown - I'm looking into it today
>
> Qt: I have yet to manage to install it on my system
>
> Anything else?

I'm very happy with web interface :-)

--
Wilk - http://flibuste.net

Report this thread to moderator Post Follow-up to this message
Old Post
Wilk
03-30-04 12:39 PM


Re: GUI Frameworks in Python?
Hugh Macdonald wrote:
>
> Qt: I have yet to manage to install it on my system
>

Its relatively easy to install and evaluate Qt/PyQt and Eric3
(associated IDE) on a Linux box.  That's the easy path.

But its a LOT of work to try on a Windows box.  Both Qt and PyQt have
licenses which allow non-commercial use on Linux but ONLY commercial use
on Windows and NO easy path to an evaluation version.

I requested an evaluation versions of Qt for Windows from TrollTech and
didn't get a response for 5 days.  Even then it was a response asking
for more detailed information about me, my company and the purpose of
the evaluation.  Nothing wrong with that, of course, except the whole
process suddenly looked to be a very protracted one.  It wasn't even
clear to me that I could then get an evaluation licence for PyQt. I gave
up.  Too hard.

In the end, I found the easiest way to *partially* evaluate PyQt on
Windows is to download the evaluation version of the "BlackAdder" IDE
from "The Kompany".  BlackAdder is a toy IDE (IMO) but it does give you
evaluation access to most of the Qt/PyQt libs and to 'Designer' the VERY
IMPRESSIVE GUI builder that comes with Qt. The Qt/PyQt libs provided
with BlackAdder do not include some important parts of the full Qt/PyQt
combination: data aware widgets, etc.

I also note that even full PyQt does not support the ActiveX parts of Qt
which turned out to be a problem for me.  Phil Thompson (Mr PyQt) seems
interested in adding ActiveX support, but nothing is there yet.

Also Note: Eric3 is an impressive IDE that targets PyQt development. But
you can't seem to evaluate it on windows, even if you have the
BlackAdder demo version installed, because it requires a component that
only comes with the full Qt/PyQt lib.

So all in all, I wouldn't even try to evaluate PyQt/Qt on Windows, just
go straight to a Linux box.  (And be aware of the ActiveX limitations of
PyQt once you get back to Windows).

You also need to be aware of the cost of PyQt/Qt.  Its expensive!  About
US$2500 for Qt (per seat) and 250 English pounds for PyQt (per seat).

Buying BlackAdder seems to give you access to a subset of the full
PyQt/Qt libraries at a significantly reduced cost.


>
> Anything else?
>

No.  You've covered the main ones.

If evaluating wxPython, you may also want to look at wxDesigner.  It not
a patch on Qt's Designer, but it seemed to me to be the best available.
There's also wxGlade and Boa.


BTW, I was recently reacquainted with VisualWorks (Smalltalk from
CinCom) ... not THAT's an IDE!!  What a shame Python was nothing to come
close, despite both languages sharing a similar dynamic nature.

--
Mike


Report this thread to moderator Post Follow-up to this message
Old Post
Mike Thompson
03-30-04 12:39 PM


Re: GUI Frameworks in Python?
Hugh Macdonald wrote:
> I've recently been trying out various different GUI frameworks in Python a
nd
> was wondering if I could get your input on the pros and cons of the
> different ones...
>
> wxPython: I love the programming side of wxPython, but I find it's just so
> slow to initialise in the first place.

Not noticed this myself but I would like to add here that wxPython is
wonderfully portable. I have run wxPython apps on my OSX machine that
were developed exclusively on a Windows machine without any problems.

Portability is my biggest concern when writing GUI code so I would push
for wxPython.

Report this thread to moderator Post Follow-up to this message
Old Post
Peter Hickman
03-30-04 01:36 PM


Sponsored Links




Last Thread Next Thread Next
Pages (7): [1] 2 3 4 5 6 » ... Last »
Search this forum -> 
Post New Thread

Python archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 02:32 PM.

 

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.