MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / setActiveEntity

Method setActiveEntity

gui/builtinViews/entityEditor.py:172–178  ·  view source on GitHub ↗
(self, entity)

Source from the content-addressed store, hash-verified

170 return self.choices[self.entityChoices.GetSelection()]
171
172 def setActiveEntity(self, entity):
173 try:
174 idx = self.choices.index(entity)
175 except IndexError:
176 return False
177 self.entityChoices.SetSelection(idx)
178 return True
179
180 def checkEntitiesExist(self):
181 if len(self.choices) > 0:

Callers 2

selectTargetProfileMethod · 0.80
__init__Method · 0.80

Calls 1

SetSelectionMethod · 0.80

Tested by

no test coverage detected