textual/docs/examples/styles/border_all.py
Akintola Richard Olaoluwa 95f0c39106
Add panel Border type to docs (#4035)
* Add panel Border type to docs

* Add panel border description
* Add Label with panel border to Grid
* Add style for panel id and change grid-size from 3 5 to 4 4

issues #3978

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2024-01-17 14:23:27 +00:00

32 lines
925 B
Python

from textual.app import App
from textual.containers import Grid
from textual.widgets import Label
class AllBordersApp(App):
CSS_PATH = "border_all.tcss"
def compose(self):
yield Grid(
Label("ascii", id="ascii"),
Label("blank", id="blank"),
Label("dashed", id="dashed"),
Label("double", id="double"),
Label("heavy", id="heavy"),
Label("hidden/none", id="hidden"),
Label("hkey", id="hkey"),
Label("inner", id="inner"),
Label("outer", id="outer"),
Label("panel", id="panel"),
Label("round", id="round"),
Label("solid", id="solid"),
Label("tall", id="tall"),
Label("thick", id="thick"),
Label("vkey", id="vkey"),
Label("wide", id="wide"),
)
if __name__ == "__main__":
app = AllBordersApp()
app.run()