textual/docs/examples/styles/keyline_horizontal.py
Will McGugan 370f5f7214
Keyline rule (#3669)
* 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>
2023-11-27 11:54:53 +00:00

18 lines
421 B
Python

from textual.app import App, ComposeResult
from textual.containers import Horizontal
from textual.widgets import Placeholder
class KeylineApp(App):
CSS_PATH = "keyline_horizontal.tcss"
def compose(self) -> ComposeResult:
with Horizontal():
yield Placeholder()
yield Placeholder()
yield Placeholder()
if __name__ == "__main__":
app = KeylineApp()
app.run()