Source

PunkyBrowster / examples / hello_qt4.py

Full commit
"""
Run this program to make sure that PyQt4 is installed properly. You should see
a small window whose title bar reads 'Hello PyQt4!'.
"""
import sys
from PyQt4 import QtGui

app = QtGui.QApplication(sys.argv)

widget = QtGui.QWidget()
widget.resize(250, 150)
widget.setWindowTitle('Hello PyQt4!')
widget.show()

sys.exit(app.exec_())