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

Method SetValue

graphs/gui/vector.py:93–98  ·  view source on GitHub ↗
(self, angle=None, length=None)

Source from the content-addressed store, hash-verified

91 return self._length
92
93 def SetValue(self, angle=None, length=None):
94 if angle is not None:
95 self._angle = min(max(angle, -180), 180)
96 if length is not None:
97 self._length = min(max(length, 0), 1)
98 self.Refresh()
99
100 def SetAngle(self, angle):
101 self.SetValue(angle, None)

Callers 5

SetAngleMethod · 0.95
SetLengthMethod · 0.95
__init__Method · 0.45
__addInputCheckboxMethod · 0.45
_setVectorDefaultsMethod · 0.45

Calls 1

RefreshMethod · 0.45

Tested by

no test coverage detected