Update weather display
This commit is contained in:
parent
158be1a0f0
commit
e962b59d4e
15
colors.py
15
colors.py
|
@ -1,8 +1,9 @@
|
||||||
BLACK = [0, 0, 0 ]
|
BLACK = [0, 0, 0 ]
|
||||||
WHITE = [255, 255, 255]
|
WHITE = [255, 255, 255]
|
||||||
GRAY = [50, 50, 50 ]
|
GRAY = [50, 50, 50 ]
|
||||||
RED = [255, 0, 0 ]
|
RED = [255, 0, 0 ]
|
||||||
PINK = [255, 0, 64 ]
|
ORANGE = [255, 64, 0 ]
|
||||||
GREEN = [0, 255, 0 ]
|
PINK = [255, 0, 64 ]
|
||||||
BLUE = [0, 64, 128]
|
GREEN = [0, 255, 0 ]
|
||||||
|
BLUE = [0, 64, 128]
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,11 @@ class WeatherDisplay:
|
||||||
def __init__(self, characterDisplay, topRow):
|
def __init__(self, characterDisplay, topRow):
|
||||||
self.characterDisplay = characterDisplay
|
self.characterDisplay = characterDisplay
|
||||||
self.topRow = topRow
|
self.topRow = topRow
|
||||||
self.twoDigitStartColumn = 5
|
self.twoDigitStartColumn = 4
|
||||||
self.oneDigitStartColumn = 9
|
self.oneDigitStartColumn = 8
|
||||||
self.digitWidth = 4
|
self.digitWidth = 4
|
||||||
self.currentTemperature = ''
|
self.currentTemperature = ''
|
||||||
self.color = colors.BLUE
|
self.color = colors.ORANGE
|
||||||
self.weatherFile = 'weather.txt'
|
self.weatherFile = 'weather.txt'
|
||||||
|
|
||||||
def showWeather(self):
|
def showWeather(self):
|
||||||
|
|
Loading…
Reference in New Issue