PDA

View Full Version : [SOLVED] [PyGTK]handling keyboard input



Jordanwb
May 3rd, 2010, 09:35 PM
I'm making a simple grid based game using PyGTK. What event would I need to connect to so I could catch and handle keyboard input such as the up, down, left and right arrows?

cdekter
May 4th, 2010, 01:16 PM
key-press-event or key-release-event which originate from any object derived from gtk.Widget

Jordanwb
May 4th, 2010, 02:20 PM
Thanks.