MCPcopy Create free account
hub / github.com/DIMFLIX/Spectrum-Security / current

Method current

ui/widgets/toggleswitch.py:55–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 self._tickfunc()
54
55 def current(self):
56 if self.reverse:
57 return self.endv - (self.value * (self.endv-self.startv))
58 else:
59 return self.value * (self.endv-self.startv)
60
61
62

Callers 2

updateMethod · 0.95
paintEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected