mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
11 lines
374 B
Python
11 lines
374 B
Python
|
|
entries = [wx.AcceleratorEntry() for i in xrange(4)]
|
|
|
|
entries[0].Set(wx.ACCEL_CTRL, ord('N'), ID_NEW_WINDOW)
|
|
entries[1].Set(wx.ACCEL_CTRL, ord('X'), wx.ID_EXIT)
|
|
entries[2].Set(wx.ACCEL_SHIFT, ord('A'), ID_ABOUT)
|
|
entries[3].Set(wx.ACCEL_NORMAL, wx.WXK_DELETE, wx.ID_CUT)
|
|
|
|
accel = wx.AcceleratorTable(entries)
|
|
frame.SetAcceleratorTable(accel)
|