mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add example for grid-gutter.
This commit is contained in:
20
docs/examples/styles/grid_gutter.py
Normal file
20
docs/examples/styles/grid_gutter.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from textual.app import App
|
||||
from textual.containers import Grid
|
||||
from textual.widgets import Label
|
||||
|
||||
|
||||
class MyApp(App):
|
||||
def compose(self):
|
||||
yield Grid(
|
||||
Label("1"),
|
||||
Label("2"),
|
||||
Label("3"),
|
||||
Label("4"),
|
||||
Label("5"),
|
||||
Label("6"),
|
||||
Label("7"),
|
||||
Label("8"),
|
||||
)
|
||||
|
||||
|
||||
app = MyApp(css_path="grid_gutter.css")
|
||||
Reference in New Issue
Block a user