Appdata für Header, Flaggensymbole laden

This commit is contained in:
2025-09-15 08:30:15 +02:00
parent f3c9ced477
commit 766b191109
20 changed files with 125 additions and 50 deletions

View File

@@ -64,10 +64,11 @@ class Page():
c = 2 * asin(sqrt(a))
return c * 3440
def __init__(self, pageno, cfg, boatdata):
def __init__(self, pageno, cfg, appdata, boatdata):
self.pageno = pageno
self.cfg = cfg
self.fullscreen = cfg['guistyle'] == 'fullscreen'
self.appdata = appdata
self.bd = boatdata
self.header = True
self.footer = True
@@ -126,7 +127,7 @@ class Page():
def draw_header(self, ctx):
"""
Mögliche Zeichen für aktivierte Funktionen
Mögliche Zeichen für aktivierte Funktionen (max. 8)
AP - Accesspoint ist aktiv
WIFI - WIFI-Client
TCP
@@ -134,6 +135,7 @@ class Page():
183
USB
GPS - GPS Fix vorhanden
TRK - Tracking aktiv
# TODO Umstellung auf Symbole je 16 Pixel zum Platz sparen
Neu: Nummer der aktiven Seite (1 - 10)
"""
@@ -143,6 +145,10 @@ class Page():
ctx.show_text(f"N2K GPS")
ctx.stroke()
# AP: Nicht implementiert
# WIFI:
# /proc/net/wireless
# Tastenstatus
ctx.save()
if self.keylock: