18 lines
573 B
Python
18 lines
573 B
Python
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):
|
|
CSS_PATH = "assets/global.tcss"
|
|
|
|
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()) |