[pygtk] what key is pressend, key-press-event

nohics nohics nohics at gmail.com
Wed Jul 15 02:56:55 WST 2009


I found it, I think that we have to do check the string value returned by:
gtk.gdk.keyval_name(event.keyval)

2009/7/14 nohics nohics <nohics at gmail.com>

> For now I'm looking at in event.keyval, where event is an argument of the
> callback function key-press-event, but I don't know if the int values of
> kayval are standard. Is that what we shall do ?
>
> 2009/7/14 nohics nohics <nohics at gmail.com>
>
>> Hello, How can I know what key is pressend on the keyboard when the Entry
>> Widget receive the key-press-event signal ?
>> Thanks.
>>
>>
>
-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? nettoy?e...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090714/787f960d/attachment-0001.htm 


More information about the pygtk mailing list