|
Re: gtk.Window() and accelerator: msg#00089gnome.gtk+.python
Marcus Habermehl wrote: Hi. I use the following code: accelgroup = gtk.AccelGroup() key, modifier = gtk.accelerator_parse('<Alt>%d' % i) accelgroup.connect_group(key, modifier, gtk.ACCEL_VISIBLE, lambda a,b,c,d,i=i: self.assess_quality(i)) recall_card_window.add_accel_group(accelgroup) Don't know whether it's right or wrong, but it works. Eugene -- Email: eugene @ renice.org Homepage: http://eugene.renice.org _______________________________________________ pygtk mailing list pygtk@xxxxxxxxxx http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: gtk.gdk.Event: 00089, John Finlay |
|---|---|
| Next by Date: | Re: FileChooserDialog an FontSelectionDialog: 00089, Maciej Katafiasz |
| Previous by Thread: | Re: gtk.Window() and acceleratori: 00089, John Finlay |
| Next by Thread: | Re: Re: gtk.Window() and accelerator: 00089, Marcus Habermehl |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |