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

Method refreshExtraColumns

graphs/gui/lists.py:64–78  ·  view source on GitHub ↗
(self, extraColSpecs)

Source from the content-addressed store, hash-verified

62 raise NotImplementedError
63
64 def refreshExtraColumns(self, extraColSpecs):
65 baseColNames = set()
66 for baseColName in self.DEFAULT_COLS:
67 if ":" in baseColName:
68 baseColName = baseColName.split(":", 1)[0]
69 baseColNames.add(baseColName)
70 columnsToRemove = set()
71 for col in self.activeColumns:
72 if col.name not in baseColNames:
73 columnsToRemove.add(col)
74 for col in columnsToRemove:
75 self.removeColumn(col)
76 for colSpec in extraColSpecs:
77 self.appendColumnBySpec(colSpec)
78 self.refreshView()
79
80 def refreshView(self):
81 self.refresh(self.wrappers)

Callers 1

refreshColumnsMethod · 0.80

Calls 3

refreshViewMethod · 0.95
removeColumnMethod · 0.80
appendColumnBySpecMethod · 0.80

Tested by

no test coverage detected