IT'S CALLED A THERMOMETER
This commit is contained in:
parent
a4e3957599
commit
ff77b8cb96
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ from hexagram.dial import Dial
|
|||
from hexagram.speedo import Speedo
|
||||
from hexagram.tacho import Tacho
|
||||
from hexagram.fuel import FuelGauge
|
||||
from hexagram.thermo import ThermoGauge
|
||||
from hexagram.thermo import Thermometer
|
||||
|
||||
class ShiftIndicator(Gauge):
|
||||
__slots__ = 'x', 'y', 'rpm_min', 'rpm_redline', 'rpm_max',
|
||||
|
@ -130,7 +130,7 @@ class Cluster():
|
|||
self.HEIGHT / 2,
|
||||
8000)
|
||||
|
||||
self.thermo = ThermoGauge(self.WIDTH - self.HEIGHT / 2,
|
||||
self.thermo = Thermometer(self.WIDTH - self.HEIGHT / 2,
|
||||
self.HEIGHT / 2,
|
||||
self.HEIGHT / 2)
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@ import cairo
|
|||
|
||||
from hexagram.dial import BottomDial
|
||||
|
||||
class ThermoGauge(BottomDial):
|
||||
MIN_ANGLE = 144.0 * (math.pi / 180.0)
|
||||
MAX_ANGLE = 216.0 * (math.pi / 180.0)
|
||||
|
||||
class Thermometer(BottomDial):
|
||||
MIN_VALUE = 85
|
||||
MAX_VALUE = 110
|
||||
WARN_VALUE = 106
|
||||
|
|
Loading…
Add table
Reference in a new issue