Come on, lazy bones
This commit is contained in:
parent
3529353175
commit
48c1d9ae4c
1 changed files with 16 additions and 0 deletions
16
py/hexagram/speedo.py
Normal file
16
py/hexagram/speedo.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import enum
|
||||||
|
|
||||||
|
from hexagram.cluster import Dial
|
||||||
|
|
||||||
|
class SpeedUnits(enum.Enum):
|
||||||
|
KPH = 0
|
||||||
|
MPH = 1
|
||||||
|
|
||||||
|
class Speedo(Dial):
|
||||||
|
__slots__ = 'units', 'max_speed',
|
||||||
|
|
||||||
|
def __init__(self, x: float, y: float, radius: float, units: SpeedUnits, max_speed: float):
|
||||||
|
super().__init__(x, y, radius)
|
||||||
|
|
||||||
|
self.units = units
|
||||||
|
self.max_speed = max_speed
|
Loading…
Add table
Reference in a new issue