widgets: Rename StatusBar to NotificaitonBar
This is not (yet) a useful change but we'll be creating a new StatusBar soon. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
parent
52de478682
commit
fc502cdcaa
3 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ class ClockApp():
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.meter = wasp.widgets.BatteryMeter()
|
self.meter = wasp.widgets.BatteryMeter()
|
||||||
self.notifier = wasp.widgets.StatusBar()
|
self.notifier = wasp.widgets.NotificationBar()
|
||||||
|
|
||||||
def foreground(self):
|
def foreground(self):
|
||||||
"""Activate the application."""
|
"""Activate the application."""
|
||||||
|
|
|
@ -54,7 +54,7 @@ class FibonacciClockApp():
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.meter = wasp.widgets.BatteryMeter()
|
self.meter = wasp.widgets.BatteryMeter()
|
||||||
self.notifier = wasp.widgets.StatusBar()
|
self.notifier = wasp.widgets.NotificationBar()
|
||||||
self.fields = b'\x05\x03\x02\x01\x01'
|
self.fields = b'\x05\x03\x02\x01\x01'
|
||||||
self.color_codes = [0xffff,0xf800,0x07e0,0x001f] # White, red, green and blue
|
self.color_codes = [0xffff,0xf800,0x07e0,0x001f] # White, red, green and blue
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ class BatteryMeter:
|
||||||
|
|
||||||
self.level = level
|
self.level = level
|
||||||
|
|
||||||
class StatusBar:
|
class NotificationBar:
|
||||||
"""Show BT status and if there are pending notifications."""
|
"""Show BT status and if there are pending notifications."""
|
||||||
def __init__(self, x=8, y=8):
|
def __init__(self, x=8, y=8):
|
||||||
self._pos = (x, y)
|
self._pos = (x, y)
|
||||||
|
|
Loading…
Reference in a new issue