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

Method refreshContents

gui/builtinAdditionPanes/commandView.py:160–168  ·  view source on GitHub ↗
(self, fit)

Source from the content-addressed store, hash-verified

158 self.refreshContents(fit)
159
160 def refreshContents(self, fit):
161 stuff = []
162 if fit is not None:
163 self.fits = fit.commandFits[:]
164 self.fits.sort(key=self.fitSort)
165 stuff.extend(self.fits)
166 if not stuff:
167 stuff = [DummyEntry(_t("Drag a fit to this area"))]
168 self.update(stuff)
169
170 def click(self, event):
171 mainRow, _ = self.HitTest(event.Position)

Callers 2

OnFitRemovedMethod · 0.95
fitChangedMethod · 0.95

Calls 4

DummyEntryClass · 0.70
_tFunction · 0.50
sortMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected