[pygtk] please help with setting accelerator for the menu item

2003-10-06 Thread Alex Roitman
Hi, I apologize for asking a silly question here, but I just can't figure it out by myself. I am creating a submenu of a main menu of a gnome program. I would like to add accelerators to the menu items of my menu. gomenu = gtk.Menu() back = gtk.ImageMenuItem(gtk.STOCK_GO_BACK)

Re: [pygtk] please help with setting accelerator for the menu item

2003-10-06 Thread Christian Reis
On Mon, Oct 06, 2003 at 01:16:00PM -0500, Alex Roitman wrote: I apologize for asking a silly question here, but I just can't figure it out by myself. I am creating a submenu of a main menu of a gnome program. I would like to add accelerators to the menu items of my menu. I've had this

Re: [pygtk] please help with setting accelerator for the menu item

2003-10-06 Thread Alex Roitman
Chris, Thanks for your response! On Mon, Oct 06, 2003 at 03:28:51PM -0300, Christian Reis wrote: Hmmm. You should save a reference to your AccelGroup, but I'm curious as to what happens when you set pass in group to add_accelerator(). I apologize, but I'm clueless as to how to save a

Re: [pygtk] please help with setting accelerator for the menu item

2003-10-06 Thread Christian Reis
On Mon, Oct 06, 2003 at 03:03:42PM -0500, Alex Roitman wrote: On Mon, Oct 06, 2003 at 03:28:51PM -0300, Christian Reis wrote: Hmmm. You should save a reference to your AccelGroup, but I'm curious as to what happens when you set pass in group to add_accelerator(). I apologize, but I'm

Re: [pygtk] please help with setting accelerator for the menu item

2003-10-06 Thread John Finlay
Christian Reis wrote: On Mon, Oct 06, 2003 at 03:03:42PM -0500, Alex Roitman wrote: On Mon, Oct 06, 2003 at 03:28:51PM -0300, Christian Reis wrote: Have you looked at the GTK+ documentation for AccelGroups? It should be simple to translate examples to PyGTK from that. I have some