def bind_keys_to_evt_menu(target, actions):
    accelrators = []
    for (accel, keycode, handler) in actions:
        _id = wx.NewIdRef()
        target.Bind(wx.EVT_MENU, handler, id=_id)
        accelrators.append((accel, keycode, _id))
    target.SetAcceleratorTable(wx.AcceleratorTable(accelrators))
def bind_keys_to_evt_menu(target, actions):
    accelrators = []
    for (accel, keycode, handler) in actions:
        _id = wx.NewIdRef()
        target.Bind(wx.EVT_MENU, handler, id=_id)
        accelrators.append((accel, keycode, _id))
    target.SetAcceleratorTable(wx.AcceleratorTable(accelrators))