mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #914 from davep/css-docs-review-events
CSS docs review - Events and Messages
This commit is contained in:
@@ -69,7 +69,7 @@ After Textual calls `Button.on_key` the event _bubbles_ to the button's parent a
|
|||||||
--8<-- "docs/images/events/bubble2.excalidraw.svg"
|
--8<-- "docs/images/events/bubble2.excalidraw.svg"
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
As before, the event bubbles to it's parent (the App class).
|
As before, the event bubbles to its parent (the App class).
|
||||||
|
|
||||||
<div class="excalidraw">
|
<div class="excalidraw">
|
||||||
--8<-- "docs/images/events/bubble3.excalidraw.svg"
|
--8<-- "docs/images/events/bubble3.excalidraw.svg"
|
||||||
@@ -186,4 +186,4 @@ Let's look at an example which looks up word definitions from an [api](https://d
|
|||||||
```{.textual path="docs/examples/events/dictionary.py" press="tab,t,e,x,t,_,_,_,_,_,_,_,_,_,_,_"}
|
```{.textual path="docs/examples/events/dictionary.py" press="tab,t,e,x,t,_,_,_,_,_,_,_,_,_,_,_"}
|
||||||
```
|
```
|
||||||
|
|
||||||
Note the highlighted line in the above code which calls `asyncio.create_task` to run coroutine in the background. Without this you would find typing in to the text box to be unresponsive.
|
Note the highlighted line in the above code which calls `asyncio.create_task` to run a coroutine in the background. Without this you would find typing in to the text box to be unresponsive.
|
||||||
|
|||||||
Reference in New Issue
Block a user