Tracker NONE implementiert und kleine Verbesserungen

This commit is contained in:
2025-09-20 09:04:48 +02:00
parent 84a99a747e
commit e5646b6f27
4 changed files with 91 additions and 51 deletions

View File

@@ -13,6 +13,7 @@ Layout
import cairo
from .page import Page
import nmea2000.boatdata
class TwoValues(Page):
@@ -44,7 +45,7 @@ class TwoValues(Page):
ctx.show_text(self.ref2.unit)
# Meßwerte
if type(self.ref1 == 'BoatValueGeo'):
if type(self.ref1) == nmea2000.boatdata.BoatValueGeo:
ctx.select_font_face("Ubuntu", cairo.FontSlant.NORMAL, cairo.FontWeight.BOLD)
ctx.set_font_size(40)
ctx.move_to(140, 100)
@@ -54,7 +55,7 @@ class TwoValues(Page):
ctx.move_to(180, 130)
ctx.show_text(self.ref1.format())
if type(self.ref2 == 'BoatValueGeo'):
if type(self.ref2) == nmea2000.boatdata.BoatValueGeo:
ctx.select_font_face("Ubuntu")
ctx.set_font_size(40)
ctx.move_to(140, 210)