mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Make clock optional in header
This commit is contained in:
@@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
from textual.app import App, ComposeResult
|
||||
from textual.binding import Binding
|
||||
from textual.widgets import Static, Footer
|
||||
from textual.widgets import Static, Footer, Header
|
||||
|
||||
|
||||
class JustABox(App):
|
||||
@@ -12,6 +12,7 @@ class JustABox(App):
|
||||
]
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Header()
|
||||
yield Static("Hello, world!", id="box1")
|
||||
yield Footer()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user