[PyKDE] Hello world with a twist

Kevin Walzer sw at wordtech-software.com
Mon Jun 20 02:40:21 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm trying to modify the standard "hello world" PyQt program to print
"hello world" to stdout:

# hello1.py
#
import sys
from qt import *

app=QApplication(sys.argv)
button=QPushButton("Hello World", None)
app.setMainWidget(button)
button.show()
app.exec_loop()


I can't quite figure this out. Can anyone help? Thanks

- --
Cheers,

Kevin Walzer, PhD
WordTech Software--Open Source Applications and Packages for OS X
http://www.wordtech-software.com
http://www.kevin-walzer.com
http://www.smallbizmac.com.
mailto:sw at wordtech-software.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCth6EJmdQs+6YVcoRAuYDAJ9udecKQMp797Rjagb3YlauFzwYSQCgi9cO
kgg301lVqjEsKTEJzzZUwdc=
=FSG+
-----END PGP SIGNATURE-----




More information about the PyQt mailing list