mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
comments
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#uber1 {
|
||||
/* border: heavy green;*/
|
||||
layout: vertical;
|
||||
text: on dark_green;
|
||||
overflow: hidden auto;
|
||||
@@ -8,22 +7,6 @@
|
||||
|
||||
.list-item {
|
||||
height: 8;
|
||||
|
||||
min-width: 80;
|
||||
|
||||
/* height: 8; */
|
||||
/* margin: 1 2; */
|
||||
text-background: dark_blue;
|
||||
}
|
||||
|
||||
#child1 {
|
||||
}
|
||||
|
||||
#child2 {
|
||||
}
|
||||
|
||||
/* #uber2 {
|
||||
margin: 3;
|
||||
layout: dock;
|
||||
docks: _default=left;
|
||||
} */
|
||||
|
||||
@@ -20,27 +20,15 @@ class BasicApp(App):
|
||||
Widget(id="uber2-child1"),
|
||||
Widget(id="uber2-child2"),
|
||||
)
|
||||
|
||||
uber1 = Widget(
|
||||
Placeholder(id="child1", classes={"list-item"}),
|
||||
Placeholder(id="child2", classes={"list-item"}),
|
||||
Placeholder(id="child3", classes={"list-item"}),
|
||||
Placeholder(classes={"list-item"}),
|
||||
# Placeholder(classes={"list-item"}),
|
||||
# Placeholder(classes={"list-item"}),
|
||||
# Placeholder(classes={"list-item"}),
|
||||
# Placeholder(classes={"list-item"}),
|
||||
# Placeholder(classes={"list-item"}),
|
||||
# Placeholder(classes={"list-item"}),
|
||||
# Placeholder(classes={"list-item"}),
|
||||
# Placeholder(id="child3", classes={"list-item"}),
|
||||
)
|
||||
uber1.show_horizontal_scrollbar = True
|
||||
|
||||
self.mount(
|
||||
uber1=uber1
|
||||
# uber2=uber2,
|
||||
Placeholder(classes={"list-item"}),
|
||||
Placeholder(classes={"list-item"}),
|
||||
)
|
||||
self.mount(uber1=uber1)
|
||||
|
||||
async def on_key(self, event: events.Key) -> None:
|
||||
await self.dispatch_key(event)
|
||||
|
||||
@@ -28,6 +28,8 @@ BORDER_CHARS: dict[str, tuple[str, str, str]] = {
|
||||
"wide": ("▁▁▁", "▏ ▕", "▔▔▔"),
|
||||
}
|
||||
|
||||
# Some of the borders are on the widget background and some are on the background of the parent
|
||||
# This table selects which for each character, 0 indicates the widget, 1 selects the parent
|
||||
BORDER_LOCATIONS: dict[
|
||||
str, tuple[tuple[int, int, int], tuple[int, int, int], tuple[int, int, int]]
|
||||
] = {
|
||||
|
||||
Reference in New Issue
Block a user