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

Method __checkInputConditions

graphs/gui/ctrlPanel.py:270–286  ·  view source on GitHub ↗
(self, inputDef)

Source from the content-addressed store, hash-verified

268 self._inputCheckboxes.append(checkbox)
269
270 def __checkInputConditions(self, inputDef):
271 if not inputDef.conditions:
272 return True
273 selectedX = self.xType
274 selectedY = self.yType
275 for xCond, yCond in inputDef.conditions:
276 xMatch = True
277 yMatch = True
278 if xCond is not None:
279 xCondHandle, xCondUnit = xCond
280 xMatch = selectedX.handle == xCondHandle and selectedX.unit == xCondUnit
281 if yCond is not None:
282 yCondHandle, yCondUnit = yCond
283 yMatch = selectedY.handle == yCondHandle and selectedY.unit == yCondUnit
284 if xMatch and yMatch:
285 return True
286 return False
287
288 def refreshAxeLabels(self, restoreSelection=False):
289 view = self.graphFrame.getView()

Callers 2

__addInputFieldMethod · 0.95
__addInputCheckboxMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected