python/pyGtk : How to generate a keyboard interrupt?

Riccardo Attilio Galli riccardo_cut-me at cut.me.sideralis.net
Mon May 3 15:56:09 EDT 2004


On Sat, 01 May 2004 08:31:07 -0700, ahk wrote:

> I would like to emulate the keyboard interrupt through other means
> other than the actual hitting on the keyboard such that a call to
> scaninput() (a C function call?) will be able to pick up the
> interrupt.  How is it possible to do that in python/pyGTK? TIA.

>>> raise KeyboardInterrupt 
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
KeyboardInterrupt

-- 
-=Riccardo Galli=-

 _,e.
s~  ``
 ~@.   ideralis Programs
.   ol 
 `**~  http://www.sideralis.net



More information about the Python-list mailing list