[PyKDE] PyQt Runtime Problem...

Kit Plummer kitplummer at comcast.net
Sun Dec 21 20:56:01 GMT 2003


When I run the examples3/tut2.py script the quit button doesn't do 
anything.  Also, I ran the widget.py script and none of the widgets do 
anything.  For reference here is the code in tut2.py;

-----------------
#!/usr/bin/env python

# Qt tutorial 2.

import sys
import qt


a = qt.QApplication(sys.argv)

quit = qt.QPushButton("Quit", None)
quit.resize(75, 30)
quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))

qt.QObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()"))

a.setMainWidget(quit)
quit.show()
sys.exit(a.exec_loop())
---------------------
I am running these on MacOSX 10.3 w/ Python 2.3:

Qt - 3.2.3
PyQt - 3.9
SIP - 4.0rc1

Any ideas?

Kit




More information about the PyQt mailing list