[pygtk] Popup menu and accelerators

Sebastian Pölsterl marduk at k-d-w.org
Fri Mar 31 03:58:34 WST 2006


Danny Milosavljevic wrote:
> Hi,
>
> Am Donnerstag, den 30.03.2006, 10:39 +0200 schrieb Sebastian Pölsterl:
>> [...]
>>
>
> I thought pop up menus aren't *supposed* to contain accelerator labels.
> One is supposed to look in the main menu for them...
>
> At least I recall a rule like that ... was it the HIG? I forgot...
>
> cheers,
>   Danny
>
You're right. Quote from
http://developer.gnome.org/projects/gup/hig/2.0/menus-types.html#menu-type-popup
"Provide an access key for each item. However, to enhance their spatial
efficiency and readability, *do not show keyboard shortcuts in popup
menus*."

But somehow it must work. E.g. gimp displays shortcuts in its popups.
-- 
Greetings,
Sebastian Pölsterl


More information about the pygtk mailing list