开发者

Menu item without a modifier key

开发者 https://www.devze.com 2023-03-27 13:10 出处:网络
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

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!")
0

精彩评论

暂无评论...
验证码 换一张
取 消