Search code examples
pythongtkaccelerator

How do I use 'F' keys in gtk Accelerators?


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


Solution

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