parameters: (self, accelTable)
docstring: Builds the entire shortcut hierarchy starting from a modified version of a :class:`AcceleratorTable`.
  
          :param `accelTable`: a modified version of :class:`AcceleratorTable`, is a list of tuples (4 elements per tuple),
           populated like this::
  
              accelTable = []
              
              # Every tuple is defined in this way:
  
              for label, flags, keyCode, cmdID in my_accelerators:
                  # label:   the string used to show the accelerator into the ShortcutEditor dialog
                  # flags:   a bitmask of wx.ACCEL_ALT, wx.ACCEL_SHIFT, wx.ACCEL_CTRL, wx.ACCEL_CMD,
                  #          or wx.ACCEL_NORMAL used to specify which modifier keys are held down
                  # keyCode: the keycode to be detected (i.e., ord('b'), wx.WXK_F10, etc...)
                  # cmdID:   the menu or control command ID to use for the accelerator event.
  
                  accel_tuple = (label, flags, keyCode, cmdID)
                  accelTable.append(accel_tuple)
docstring_summary: Builds the entire shortcut hierarchy starting from a modified version of a :class:`AcceleratorTable`.
docstring_tokens: Builds the entire shortcut hierarchy starting from a modified version of a : class : AcceleratorTable .
function: def FromAcceleratorTable(self, accelTable):
          """
          Builds the entire shortcut hierarchy starting from a modified version of a :class:`AcceleratorTable`.
  
          :param `accelTable`: a modified version of :class:`AcceleratorTable`, is a list of tuples (4 elements per tuple),
           populated like this::
  
              accelTable = []
              
              # Every tuple is defined in this way:
  
              for label, flags, keyCode, cmdID in my_accelerators:
                  # label:   the string used to show the accelerator into the ShortcutEditor dialog
                  # flags:   a bitmask of wx.ACCEL_ALT, wx.ACCEL_SHIFT, wx.ACCEL_CTRL, wx.ACCEL_CMD,
                  #          or wx.ACCEL_NORMAL used to specify which modifier keys are held down
                  # keyCode: the keycode to be detected (i.e., ord('b'), wx.WXK_F10, etc...)
                  # cmdID:   the menu or control command ID to use for the accelerator event.
  
                  accel_tuple = (label, flags, keyCode, cmdID)
                  accelTable.append(accel_tuple)
  
          """
  
          parentShortcut = Shortcut(_('Accelerators'))
          
          parentShortcut.topMenu = True
          self.manager.AppendItem(parentShortcut)
          
          for text, modifier, accel, ids in accelTable:
              modifier = ACCELERATORS[modifier]
              if accel in KEYMAP:
                  accel = KEYMAP[accel]
              else:
                  accel = chr(accel)
  
              shortcut = (modifier and ['%s+%s'%(modifier, accel)] or [accel])[0]           
              shortcutItem = Shortcut(text, shortcut, accelId=ids)
              parentShortcut.AppendItem(shortcutItem)
function_tokens: def FromAcceleratorTable ( self , accelTable ) : parentShortcut = Shortcut ( _ ( 'Accelerators' ) ) parentShortcut . topMenu = True self . manager . AppendItem ( parentShortcut ) for text , modifier , accel , ids in accelTable : modifier = ACCELERATORS [ modifier ] if accel in KEYMAP : accel = KEYMAP [ accel ] else : accel = chr ( accel ) shortcut = ( modifier and [ '%s+%s' % ( modifier , accel ) ] or [ accel ] ) [ 0 ] shortcutItem = Shortcut ( text , shortcut , accelId = ids ) parentShortcut . AppendItem ( shortcutItem )