This commit is contained in:
parent
67b5566f42
commit
831c01e4e1
2 changed files with 4 additions and 2 deletions
|
@ -83,6 +83,8 @@ class DBFAnimation(BubaAnimation):
|
||||||
train = "ICE"
|
train = "ICE"
|
||||||
if train.startswith("ME"):
|
if train.startswith("ME"):
|
||||||
train = "ME"
|
train = "ME"
|
||||||
|
if train.startswith("NJ"):
|
||||||
|
train = "NJ"
|
||||||
if train.startswith("RE"):
|
if train.startswith("RE"):
|
||||||
train = "RE"
|
train = "RE"
|
||||||
train = train.replace(" ", "")
|
train = train.replace(" ", "")
|
||||||
|
@ -113,7 +115,7 @@ class DBFAnimation(BubaAnimation):
|
||||||
when = self.countdown(train)
|
when = self.countdown(train)
|
||||||
if when < 0:
|
if when < 0:
|
||||||
when = 0
|
when = 0
|
||||||
self.buba.text(page=0, row=i + 1, col_start=0, col_end=119, text=self.short_train(train['train']))
|
self.buba.text(page=0, row=i + 1, col_start=0, col_end=11, text=self.short_train(train['train']))
|
||||||
self.buba.text(page=0, row=i + 1, col_start=12, col_end=104, text=self.short_station(train['destination']))
|
self.buba.text(page=0, row=i + 1, col_start=12, col_end=104, text=self.short_station(train['destination']))
|
||||||
self.buba.text(page=0, row=i + 1, col_start=105, col_end=119,
|
self.buba.text(page=0, row=i + 1, col_start=105, col_end=119,
|
||||||
text=str(when), align=BubaCmd.ALIGN_RIGHT)
|
text=str(when), align=BubaCmd.ALIGN_RIGHT)
|
||||||
|
|
|
@ -10,7 +10,7 @@ class BubaTime(BubaAnimation):
|
||||||
super().__init__(buba)
|
super().__init__(buba)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.buba.simple_text(page=0, row=0, col=0, text="Bus-Bahn-Anzeige")
|
self.buba.simple_text(page=0, row=0, col=92, text="Bus-Bahn-Anzeige")
|
||||||
self.buba.simple_text(page=0, row=1, col=0, text="Chaos Computer Club")
|
self.buba.simple_text(page=0, row=1, col=0, text="Chaos Computer Club")
|
||||||
self.buba.simple_text(page=0, row=2, col=0, text="Hansestadt Hamburg")
|
self.buba.simple_text(page=0, row=2, col=0, text="Hansestadt Hamburg")
|
||||||
self.buba.simple_text(page=0, row=3, col=0, text="Hello, world!")
|
self.buba.simple_text(page=0, row=3, col=0, text="Hello, world!")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue