Creating menus using wxpython

后端 未结 2 2015
情话喂你
情话喂你 2021-01-22 20:32

I created a menu using:

fileMenu = wx.Menu()
fileMenu.Append(ID_NEW, \"&New\\tCtrl+N\", \"Creates a new file\")

I can access New by clickin

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-22 21:08

    The shortcut letter following & will be accessible only from the menu.

    The \tCtrl+N is available from the entire app, and the short-cut is displayed next to the menu item.

提交回复
热议问题