| 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")) |