mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
ws
This commit is contained in:
@@ -7,4 +7,4 @@ class ColorChanger(App):
|
||||
self.background = f"on color({event.key})"
|
||||
|
||||
|
||||
ColorChanger.run()
|
||||
ColorChanger.run(log="textual.log")
|
||||
|
||||
16
docs/examples/widgets/placeholders.py
Normal file
16
docs/examples/widgets/placeholders.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from textual import events
|
||||
from textual.app import App
|
||||
from textual.widgets import Placeholder
|
||||
|
||||
|
||||
class SimpleApp(App):
|
||||
"""Demonstrates smooth animation"""
|
||||
|
||||
async def on_mount(self, event: events.Mount) -> None:
|
||||
"""Build layout here."""
|
||||
|
||||
await self.view.dock(Placeholder(), edge="left", size=40)
|
||||
await self.view.dock(Placeholder(), Placeholder(), edge="top")
|
||||
|
||||
|
||||
SimpleApp.run(log="textual.log")
|
||||
Reference in New Issue
Block a user