Erste funktionsfähige Tracker-Version

This commit is contained in:
2025-09-15 19:33:33 +02:00
parent ebb7b42d48
commit eb41bdafa4
6 changed files with 291 additions and 92 deletions

View File

@@ -142,13 +142,9 @@ class Page():
ctx.select_font_face("Ubuntu", cairo.FontSlant.NORMAL, cairo.FontWeight.BOLD)
ctx.set_font_size(16)
ctx.move_to(0.5, 14.5)
ctx.show_text(f"N2K GPS")
ctx.show_text(' '.join([s for s in self.appdata.status if self.appdata.status[s]]))
ctx.stroke()
# AP: Nicht implementiert
# WIFI:
# /proc/net/wireless
# Tastenstatus
ctx.save()
if self.keylock:
@@ -325,6 +321,7 @@ class Page():
ctx.stroke()
def draw_text_boxed(self, ctx, x, y, w, h, content, inverted=False, border=False):
ctx.save()
ctx.set_line_width(1)
# Background fill
ctx.set_source_rgb(*self.fgcolor)
@@ -343,6 +340,7 @@ class Page():
ctx.move_to(x + 4, y + h - 5 + 0.5)
ctx.show_text(content)
ctx.stroke()
ctx.restore()
def wordwrap(text, wrap):
# Wrap long line to multiple lines, monospaced character set