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

Class Input

graphs/data/base/defs.py:85–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84
85class Input:
86
87 def __init__(self, handle, unit, label, iconID, defaultValue, defaultRange, mainTooltip=None, secondaryTooltip=None, conditions=()):
88 self.handle = handle
89 self.unit = unit
90 self.label = label
91 self.iconID = iconID
92 self.defaultValue = defaultValue
93 self.defaultRange = defaultRange
94 self.mainTooltip = mainTooltip
95 self.secondaryTooltip = secondaryTooltip
96 # Format: ((x condition, y condition), (x condition, y condition), ...)
97 self.conditions = tuple(conditions)
98
99 def __hash__(self):
100 return hash((self.handle, self.unit, self.label, self.iconID, self.defaultValue, self.defaultRange, self.mainTooltip, self.secondaryTooltip, self.conditions))
101
102 def __eq__(self, other):
103 if not isinstance(other, Input):
104 return False
105 return all((
106 self.handle == other.handle,
107 self.unit == other.unit,
108 self.label == other.label,
109 self.iconID == other.iconID,
110 self.defaultValue == other.defaultValue,
111 self.defaultRange == other.defaultRange,
112 self.mainTooltip == other.mainTooltip,
113 self.secondaryTooltip == other.secondaryTooltip,
114 self.conditions == other.conditions))
115
116
117class InputCheckbox:

Callers 10

FitShieldRegenGraphClass · 0.90
FitWarpTimeGraphClass · 0.90
FitCapacitorGraphClass · 0.90
FitEwarStatsGraphClass · 0.90
FitDamageStatsGraphClass · 0.90
FitRemoteRepsGraphClass · 0.90
FitLockTimeGraphClass · 0.90
FitMobilityGraphClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected