usr bin python from PyQt4 import Qt import sys if __name__ __main__ ap

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#!/usr/bin/python
from PyQt4 import Qt
import sys
if __name__ == "__main__" :
app = Qt.QApplication(sys.argv)
button = Qt.QPushButton("Exit")
button.resize(200, 70)
Qt.QObject.connect(button, Qt.SIGNAL("clicked()"), sys.exit)
button.show()
app.exec_()