You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
456 B
Python
17 lines
456 B
Python
from textual.app import App, ComposeResult
|
|
from textual.screen import Screen
|
|
from textual.widgets import Header, Footer, Placeholder, Label
|
|
|
|
class DashboardScreen(Screen):
|
|
|
|
def __init__(self):
|
|
super().__init__()
|
|
|
|
context = self.app.getContext()
|
|
context['dashboard'] = 'dashboard'
|
|
|
|
def compose(self) -> ComposeResult:
|
|
yield Header(show_clock=True)
|
|
yield Placeholder("Dashboard Screen")
|
|
yield Footer()
|