I have an application that has a PyQT GUI. I set up the GUI in the usual PyQT fashion:
app = QtGui.QApplication(sys.argv)
win = MainWindow()
win.initialize()
win.show()
sys.exit(app.exec_())
The problem is that right after this I have a while loop that handles signals (signal.signal(signal.SIGINT, ...) and also does some other things. If I call sys.exit(app.exec_()) before the while loop, the loop does not execute. If I call it after the loop, the GUI hangs up. Any help is much appreciated!!