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

2009-07-15 Thread Walter Leibbrandt
nohics nohics wrote: > I found it, I think that we have to do check the string value returned by: > gtk.gdk.keyval_name(event.keyval) Or you can compare event.keyval to the constants defined in gtk.keysyms. To test for modifiers like control and alt, you can test the set bits in event.state accord

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

2009-07-14 Thread nohics nohics
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 > 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

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

2009-07-14 Thread nohics nohics
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 > Hello, How can I know what key is pressend on the keyboard when the Entry >

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

2009-07-14 Thread nohics nohics
Hello, How can I know what key is pressend on the keyboard when the Entry Widget receive the key-press-event signal ? Thanks. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/