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

Method refreshEntityList

gui/builtinViews/entityEditor.py:155–164  ·  view source on GitHub ↗
(self, selected=None)

Source from the content-addressed store, hash-verified

153 wx.PostEvent(self.entityChoices, wx.CommandEvent(wx.wxEVT_COMMAND_CHOICE_SELECTED))
154
155 def refreshEntityList(self, selected=None):
156 self.choices = self.getEntitiesFromContext()
157 self.entityChoices.Clear()
158
159 self.entityChoices.AppendItems([p.name for p in self.choices])
160 if selected:
161 idx = self.choices.index(selected)
162 self.entityChoices.SetSelection(idx)
163 else:
164 self.entityChoices.SetSelection(0)
165
166 def getActiveEntity(self):
167 if len(self.choices) == 0:

Callers 11

__init__Method · 0.95
OnNewMethod · 0.95
OnCopyMethod · 0.95
OnRenameMethod · 0.95
OnDeleteMethod · 0.95
importPatternsMethod · 0.80
__init__Method · 0.80
importPatternsMethod · 0.80
importPatternsMethod · 0.80
refreshCharacterListMethod · 0.80
importSkillsMethod · 0.80

Calls 3

SetSelectionMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected