MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / _fetchValues

Method _fetchValues

gui/builtinItemStatsViews/itemProperties.py:35–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 self.PopulateList()
34
35 def _fetchValues(self):
36 if self.stuff is None:
37 self.attrInfo.clear()
38 self.attrValues.clear()
39 self.attrInfo.update(self.item.attributes)
40 self.attrValues.update(self.item.attributes)
41 elif self.stuff.item == self.item:
42 self.attrInfo.clear()
43 self.attrValues.clear()
44 self.attrInfo.update(self.stuff.item.attributes)
45 self.attrValues.update(self.stuff.itemModifiedAttributes)
46 elif self.stuff.charge == self.item:
47 self.attrInfo.clear()
48 self.attrValues.clear()
49 self.attrInfo.update(self.stuff.charge.attributes)
50 self.attrValues.update(self.stuff.chargeModifiedAttributes)
51 # When item for stats window no longer exists, don't change anything
52 else:
53 return
54
55 def PopulateList(self):
56 self.paramList.InsertColumn(0, _t("Attribute"))

Callers 1

__init__Method · 0.95

Calls 2

clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected