* canvas * imports * more box drawing * lines * lines * box drawing table * fix box table * tweak test * canvas color * simplify canvas * optimization * clipping * render experiment * keyline css * tests * don't draw around invisible widgets * optimize * snapshot test * docs and examples * tab size * disclaimer * docs * changelog * snapshots * accidental add * rename for consistency * simplify color * docstrings * comment * snapshots * micro optimize * micro-optimization * typing * set over list * remove comment * docstring * punctuation * Update docs/styles/keyline.md Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com> --------- Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
19 lines
488 B
Python
19 lines
488 B
Python
from textual.app import App, ComposeResult
|
|
from textual.containers import Grid
|
|
from textual.widgets import Placeholder
|
|
|
|
|
|
class KeylineApp(App):
|
|
CSS_PATH = "keyline.tcss"
|
|
|
|
def compose(self) -> ComposeResult:
|
|
with Grid():
|
|
yield Placeholder(id="foo")
|
|
yield Placeholder(id="bar")
|
|
yield Placeholder()
|
|
yield Placeholder(classes="hidden")
|
|
yield Placeholder(id="baz")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
KeylineApp().run()
|