[pygtk] Accel map and labels

Sebastian Pölsterl marduk at k-d-w.org
Mon Apr 3 18:49:25 WST 2006


John Finlay wrote:
> Sebastian Pölsterl wrote:
>> John Finlay wrote:
>>
>>> Sebastian Pölsterl wrote:
>>>
>>>> [...]
>>>>
>>>>
>>> Did you call gtk.Menu.set_accel_group() for your menu?
>>>
>>> John
>>>
>>>
>>>
>> gtk.Menu is a popup menu, but I'm using gtk.MenuBar that doesn't have
>> set_accel_group
>>
>>
> My understanding is that a MenuBar is used to contain MenuItems with
> associated popup menus not MenuItems alone. Perhaps you should think
> about using a Toolbar instead. Otherwise associate Menus with the
> MenuBar MenuItems.
>
> John
>
>
You were right. Calling set_accel_group for each MenuItem in the Menubar
worked fine.

Thanks a lot.

-- 
Greetings,
Sebastian Pölsterl


More information about the pygtk mailing list