mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
startup
This commit is contained in:
@@ -17,7 +17,7 @@ class BasicApp(App):
|
||||
}
|
||||
|
||||
#widget1 {
|
||||
text: on blue;
|
||||
text-background: blue;
|
||||
dock-group: widgets;
|
||||
}
|
||||
|
||||
@@ -30,10 +30,11 @@ class BasicApp(App):
|
||||
|
||||
async def on_mount(self) -> None:
|
||||
"""Build layout here."""
|
||||
|
||||
self.log("MOUNT")
|
||||
await self.view.mount(
|
||||
sidebar=Placeholder(), widget1=Placeholder(), widget2=Placeholder()
|
||||
)
|
||||
self.log("MOUNTED CHILDREN", self.view.children)
|
||||
|
||||
|
||||
BasicApp.run(log="textual.log")
|
||||
|
||||
Reference in New Issue
Block a user