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

Method populate

gui/builtinMarketBrowser/itemView.py:267–277  ·  view source on GitHub ↗
(self, items)

Source from the content-addressed store, hash-verified

265 self.PopupMenu(menu)
266
267 def populate(self, items):
268 if len(items) > 0:
269 # Clear selection
270 self.unselectAll()
271 # Perform sorting, using item's meta levels besides other stuff
272 if self.marketBrowser.mode != 'recent':
273 items.sort(key=self.sMkt.itemSort)
274 # Mark current item list as active
275 self.active = items
276 # Show them
277 Display.populate(self, items)
278
279 def refresh(self, items):
280 if len(items) > 1:

Callers 3

slotsChangedMethod · 0.45
fitChangedMethod · 0.45
fitChangedMethod · 0.45

Calls 2

unselectAllMethod · 0.80
sortMethod · 0.45

Tested by

no test coverage detected