Tracker und MQTT code
This commit is contained in:
15
pages/tracker.py
Normal file
15
pages/tracker.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import cairo
|
||||
from .page import Page
|
||||
|
||||
class Tracker(Page):
|
||||
|
||||
def __init__(self, pageno, cfg, boatdata):
|
||||
super().__init__(pageno, cfg, boatdata)
|
||||
|
||||
def draw(self, ctx):
|
||||
# Name
|
||||
ctx.select_font_face("Ubuntu", cairo.FontSlant.NORMAL, cairo.FontWeight.BOLD)
|
||||
ctx.set_font_size(60)
|
||||
ctx.move_to(20, 100)
|
||||
ctx.show_text("Tracker")
|
||||
|
||||
Reference in New Issue
Block a user