Exemple #1
0
 def mainException(s):
     if isinstance(sys.exc_info()[1], KeyboardInterrupt) and \
        s.iswaiting:
         sys.stdout.write("Timer interrupted at user request; program terminating.             \n")
         s.terminate()
     else:
         UIBase.mainException(s)
Exemple #2
0
 def mainException(s):
     if isinstance(sys.exc_info()[1], KeyboardInterrupt) and \
        s.iswaiting:
         sys.stdout.write("Timer interrupted at user request; program terminating.             \n")
         s.terminate()
     else:
         UIBase.mainException(s)
Exemple #3
0
 def mainException(s):
     s.c.stop()
     UIBase.mainException(s)
Exemple #4
0
 def mainException(s):
     s.c.stop()
     UIBase.mainException(s)