[pygtk] gtk.accelerator_parse
Alexander Kuleshov
kuleshovmail at gmail.com
Tue Feb 16 21:51:14 WST 2010
Hi to all. I have menu on my form and gtktextview:
I create imageitemmenu:
self.file_new = gtk.ImageMenuItem(gtk.STOCK_NEW, agr)
key,mod = gtk.accelerator_parse("N")
self.file_new.add_accelerator("activate", agr, key, mod,
gtk.ACCEL_VISIBLE)
But when i press n in textview at this time triggered file_new menu
activate... How can i resolve it? And how can i make hot keys for
example CTRL + W + S?
Thank you.
More information about the pygtk
mailing list