mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Update sandbox uber
This commit is contained in:
@@ -30,9 +30,9 @@ class BasicApp(App):
|
||||
Widget(id="uber2-child1"),
|
||||
Widget(id="uber2-child2"),
|
||||
)
|
||||
self.first_child = Placeholder(id="child1", classes={"list-item"})
|
||||
first_child = Placeholder(id="child1", classes={"list-item"})
|
||||
uber1 = Widget(
|
||||
self.first_child,
|
||||
first_child,
|
||||
Placeholder(id="child2", classes={"list-item"}),
|
||||
Placeholder(id="child3", classes={"list-item"}),
|
||||
Placeholder(classes={"list-item"}),
|
||||
@@ -40,7 +40,7 @@ class BasicApp(App):
|
||||
Placeholder(classes={"list-item"}),
|
||||
)
|
||||
self.mount(uber1=uber1)
|
||||
await self.first_child.focus()
|
||||
await first_child.focus()
|
||||
|
||||
async def on_key(self, event: events.Key) -> None:
|
||||
await self.dispatch_key(event)
|
||||
|
||||
Reference in New Issue
Block a user