This doesn't work (while it should): import sys from qt import * app = QApplication(sys.argv) button = QPushButton("&Hello World", None) app.setMainWidget(button) button.show() app.connect(button, SIGNAL("clicked()"), lambda: app.exit(0)) app.exec_loop() Any ideas, why? Pete