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

7 lines
183 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04: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_())