[PyKDE] PyQt on iPAQ

David Boddie david at sleepydog.net
Wed Jun 5 12:05:00 BST 2002


On Monday 03 Jun 2002 11:58 pm, Joe Chott wrote:

> I guess one of the most awesome things to me about tcl/tk was
> that a code example like:
>
> button .b -text "Exit Program" -command exit
> pack .b
>
> is a complete, self contained program, in two lines, which shows
> how a button works in tcl/tk.
>
> As clean as python is (and I do like how clean the code looks),
> it seems that you have more overhead to have a working PyQt app,
> and that is fine.

This is slightly off-topic, but the corresponding example using Tkinter
would look something like:

from Tkinter import *
import sys
b = Button(text = "Exit Program", command = sys.exit)
b.pack()


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________




More information about the PyQt mailing list