Exemple #1
0
 def __init__(self, prefix, unit):
     symbol = f"{prefix.symbol}{unit.symbol}"
     notation = f"{prefix.prefix}{unit.notation}"
     plurality = f"{prefix.prefix}{unit.plurality}"
     Unit.__init__(self, symbol, notation, plurality)
     self.prefix = prefix
     self.unit = unit
Exemple #2
0
 def __init__(self):
     Unit.__init__(self, "m", "meter", "meters")
Exemple #3
0
 def __init__(self):
     Unit.__init__(self, "s", "second", "seconds")
Exemple #4
0
 def __init__(self):
     Unit.__init__(self, "f", "frame", "frames")
Exemple #5
0
 def __init__(self):
     Unit.__init__(self, "px", "pixel", "pixels")
Exemple #6
0
 def __init__(self, **kwargs):
     Unit.__init__(self, **kwargs)