simulating keyboard events

Michael Hudson mwh at
Mon Mar 31 15:21:01 CEST 2003

student00 at (student) writes:

> is there an easy way to simulate a keyboard event in python..

I doubt it, but I don't actually know...

> i need to send a 'Delete' key event to a text widget (at the current
> cursor position/selection)

But I do know that this will be *very* platform dependent, so drop us
a clue...


   This proposal, if accepted, will probably mean a heck of a lot of
   work for somebody.  But since I don't want it accepted, I don't
   care.                                   -- Laura Creighton, PEP 666

More information about the Python-list mailing list