Flash LED programmierung

This commit is contained in:
2025-09-14 09:41:53 +02:00
parent defe4e3c03
commit 20882feeca
2 changed files with 136 additions and 1 deletions

View File

@@ -109,6 +109,7 @@ import uuid
import json
from appdata import AppData
from led import LED
import nmea0183
import pages
@@ -359,13 +360,21 @@ class Frontend(Gtk.Window):
self.connect("draw", self.on_draw)
self.fixed = Gtk.Fixed()
self.add(self.fixed)
# OBP GUI
self.da = Gtk.DrawingArea()
self.da.add_events(Gdk.EventMask.BUTTON_PRESS_MASK|Gdk.EventMask.BUTTON_RELEASE_MASK)
self.add(self.da)
self.fixed.put(self.da, 0, 0)
self.da.set_size_request(530, 555) # für fixed benötigt
self.da.connect("draw", self.da_draw)
self.da.connect('button-press-event', self.da_button_press)
self.da.connect('button-release-event', self.da_button_release)
# Flash LED
self.flashled = LED(self.fixed) # Soft Flash-LED
self.button_clicked = 0 # Geklickter Button vor Loslassen
self.keylock = False
self.pages = profile