views:

275

answers:

2

I'm trying (in python) to use gtk.Widget.add_accelerator... what should I pass as accel_key to use the F keys? Have attempted to check the docs to no avail. Thanks

A: 

Found it:

key,mods=gtk.accelerator_parse("F10")
DaedalusFall
+2  A: 

Consider using gtk.accelerator_parse(). Here is an informative post on dealing with keyboard codes in pygtk.

anthony