building out UI a ton more and also working on serialization and deserial for the desktop app

This commit is contained in:
2026-03-08 14:09:43 +11:00
parent 0a560dca17
commit 12a8bd4c19
7 changed files with 158 additions and 24 deletions

View File

@@ -1,6 +1,7 @@
from textual.app import App
from ui.screens.pair_screen import PairScreen
from api.node import MeshNode
from api.channel import Channel
class mesh(App):
@@ -9,6 +10,9 @@ class mesh(App):
def __init__(self, driver_class = None, css_path = None, watch_css = False, ansi_color = False):
super().__init__(driver_class, css_path, watch_css, ansi_color)
self.mesh_node: MeshNode = None
# key = channel name
# value = channel
self.channels: dict[str, Channel]
def on_ready(self):
self.push_screen(PairScreen())