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 according to 
http://library.gnome.org/devel/pygtk/2.14/gdk-constants.html#gdk-modifier-constants

HTH,
-- 
Walter Leibbrandt                  Software Developer
Recent blogs:
* Conquering the CellRendererWidget
http://www.translate.org.za/blogs/walter/en/content/conquering-cellrendererwidget

_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to