Beispiel #1
0
 def __getModuleInfo(self, intCD, icon, index):
     module = self.__getModuleItem(intCD)
     return {'header': getTreeModuleHeader(module),
      'parameters': getShortListParameters(module, self.__getProgressionVehicle(), self.__getInstalledOnVehicleAnalogByIntCD(intCD)),
      'hotKeys': getHotKeyListByIndex(index),
      'module': {'icon': icon,
                 'intCD': intCD,
                 'available': True}}
Beispiel #2
0
 def __getModuleInfo(self, moduleItem, index):
     moduleInfo = {'header': getTreeModuleHeader(moduleItem),
      'parameters': getShortListParameters(moduleItem, self._getVehicle()),
      'module': {'icon': getTreeModuleIcon(moduleItem),
                 'intCD': moduleItem.intCD,
                 'available': True}}
     if not self.__textInited:
         moduleInfo['hotKeys'] = br_helpers.getHotKeyListByIndex(index)
     return moduleInfo