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

Method _fetchValues

gui/builtinItemStatsViews/itemAttributes.py:86–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 self.mainFrame.Unbind(GE.ITEM_CHANGED_INPLACE)
85
86 def _fetchValues(self):
87 if self.stuff is None:
88 self.attrInfo.clear()
89 self.attrValues.clear()
90 self.attrInfo.update(self.item.attributes)
91 self.attrValues.update(self.item.attributes)
92 elif self.isStuffItem:
93 self.attrInfo.clear()
94 self.attrValues.clear()
95 self.attrInfo.update(self.stuff.item.attributes)
96 self.attrValues.update(self.stuff.itemModifiedAttributes)
97 elif self.isStuffCharge:
98 self.attrInfo.clear()
99 self.attrValues.clear()
100 self.attrInfo.update(self.stuff.charge.attributes)
101 self.attrValues.update(self.stuff.chargeModifiedAttributes)
102 # When item for stats window no longer exists, don't change anything
103 else:
104 return
105
106 def UpdateList(self):
107 self.Freeze()

Callers 2

__init__Method · 0.95
RefreshValuesMethod · 0.95

Calls 2

clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected