Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Sep 12, 2024
1 parent 6f6c987 commit 3e1b413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/widgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ A widget's bindings will only be checked if it or one of its descendants has foc

Let's look at Textual's builtin [Button](../widgets/button.md) widget to see an example of how widget bindings work.
The `Button` widget has a single binding for the `enter` key.
When a button is focused, and the user presses ++enter++, the `action_press` method inside button is called.
When a button is focused, and the user presses ++enter++, the `action_press` method inside `Button` is called.

```python
class Button(Widget, can_focus=True): # (1)!
Expand Down

0 comments on commit 3e1b413

Please sign in to comment.