I want to create menu using GTK+. My question is: is there any way to create menu items with accelerators, but with开发者_运维技巧out a modifier key?
Just put an underscore before the underlined letter, it will be underlined and used as a shortcut. For example, in pygtk:
copy = gtk.ImageMenuItem(gtk.STOCK_COPY)
copy.set_label("_Copy It!")
精彩评论