Tracker NONE implementiert und kleine Verbesserungen
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user