Skip to content

Commit c12fe83

Browse files
committed
words
1 parent e40f95d commit c12fe83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/tutorial.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ Some of the new styles have more than one selector separated by a space. The spa
353353
```
354354

355355
The `.started` selector matches any widget with a `"started"` CSS class.
356-
While `#start` matches a child widget with an ID of `"start"`.
356+
While `#start` matches a widget with an ID of `"start"`.
357357
Combining the two selectors with a space (`.started #start`) creates a new selector that will match the start button *only* if it is also inside a container with a CSS class of "started".
358358

359359
As before, the `display: none` rule will cause any matching widgets to be hidden from view.
@@ -377,6 +377,8 @@ The `on_button_pressed` method is an *event handler*. Event handlers are methods
377377
Event handlers begin with `on_` followed by the name of the event they will handle.
378378
Hence `on_button_pressed` will handle the button pressed event.
379379

380+
See the guide on [message handlers](./guide/events.md#message-handlers) for the details on how to write event handlers.
381+
380382
If you run `stopwatch04.py` now you will be able to toggle between the two states by clicking the first button:
381383

382384
```{.textual path="docs/examples/tutorial/stopwatch04.py" title="stopwatch04.py" press="tab,tab,tab,enter"}

0 commit comments

Comments
 (0)