RosettaCodeData/Task/Hello-world-Graphical/Python/hello-world-graphical-3.py

7 lines
183 B
Python
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
import PyQt4.QtGui
app = PyQt4.QtGui.QApplication([])
pb = PyQt4.QtGui.QPushButton('Hello World')
pb.connect(pb,PyQt4.QtCore.SIGNAL("clicked()"),pb.close)
pb.show()
exit(app.exec_())