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.