def __updateSelectedShell(self, slotIndex): slotIndex = int(slotIndex) if self.__selectedShellIndex != slotIndex: vehicle_adjusters.changeShell(self.__vehicle, slotIndex) self.__selectedShellIndex = slotIndex return True return False
def _sortChildren(self): self._children.sort(key=lambda item: item.id) if self.__vehicle is not None and self._children: vehicle_adjusters.changeShell(self.__vehicle, 0) return