def timeout(): global count count += 1 print 'timeout %d'%count if count > 5: QCoreApplication.quit()
def unixSignal(number): print 'Unix signal:', number QCoreApplication.quit()