views:

88

answers:

1

Hi,

 #I write alot of small apps where I use 

try:
   print "always does this until I Ctrl+C"


Except KeyboardInterrupt:
   print "finish program"

I've just began to move away from using IDLE and booted up PyScripter. However CTRL+C no longer works. Is it possible to still send in a KeyboardInterrupt while using the built-in interpreter? Thanks, PPTim

A: 

I keep answering my own questions, but I believe they are valid..

The PyScripter google group has one implementation where they import a progress bar and kill it, simulating an interrupt. however, this is not the same as a keyboard interrupt. Looks like i'm out of luck until a new implementation.

Having Said That, can anyone suggest another novel way to terminate programs at a user's discretion (without using threads :p)?

PPTim