More column fixes

This commit is contained in:
Stefan Bethke 2025-06-02 20:40:59 +02:00
commit 9c534c187e
2 changed files with 4 additions and 2 deletions

View file

@ -83,6 +83,8 @@ class DBFAnimation(BubaAnimation):
train = "ICE"
if train.startswith("ME"):
train = "ME"
if train.startswith("NJ"):
train = "NJ"
if train.startswith("RE"):
train = "RE"
train = train.replace(" ", "")
@ -113,7 +115,7 @@ class DBFAnimation(BubaAnimation):
when = self.countdown(train)
if 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=105, col_end=119,
text=str(when), align=BubaCmd.ALIGN_RIGHT)