I wrote PyQt application. After it's start I close it (GUI), but timer don't stops and Python sometimes freezes. Only thing to unfreeze it - Ctrl-C, after which following message appears:
Traceback (most recent call last): File "", line 262, in timerEvent KeyboardInterrupt
timer don't stops again, and CPython works very slowly. How to avoid this problem?
EDIT: I added killTimer() to source but things don't changed that much. CPython is slow and hangs sometimes. How to fully destroy all PyQt objects?
Mw = TMainWindow()
TimerId = Mw.startTimer(25)
QApp.exec_()
Mw.killTimer(TimerId)