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