[pygtk] Generating Keyboard Events

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Tue Mar 14 21:01:45 WST 2006


Can anyone give me some guidance on generating keyboard events?  There 
are a couple of widgets that just don't work to suit me, and which 
cannot (so far as I can tell) be directly overridden; the 
gtk.EntryCompletion is my #1 pet peeve, for how it handles Tab.  I'd 
like to catch the keystroke (which I know how to do), nullify it (which 
I think I know how to do), and generate a Return and a Tab and have them 
handled in that order (I'll need to keep a flag to prevent the synthetic 
Tab from making the whole mess loop).

But I'm not having any luck finding guidance for creating synthetic 
keyboard events.

Anybody?

-- Chris.



More information about the pygtk mailing list