mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix tests
This commit is contained in:
21
docs/events/click.md
Normal file
21
docs/events/click.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Click
|
||||
|
||||
The `Click` event is sent to a widget when the user clicks a mouse button.
|
||||
|
||||
- [x] Bubbles
|
||||
- [ ] Verbose
|
||||
|
||||
## Attributes
|
||||
|
||||
| attribute | type | purpose |
|
||||
| ---------- | ---- | ----------------------------------------- |
|
||||
| `x` | int | Mouse x coordinate, relative to Widget |
|
||||
| `y` | int | Mouse y coordinate, relative to Widget |
|
||||
| `delta_x` | int | Change in x since last mouse event |
|
||||
| `delta_y` | int | Change in y since last mouse event |
|
||||
| `button` | int | Index of mouse button |
|
||||
| `shift` | bool | Shift key pressed if True |
|
||||
| `meta` | bool | Meta key pressed if True |
|
||||
| `ctrl` | bool | Ctrl key pressed if True |
|
||||
| `screen_x` | int | Mouse x coordinate relative to the screen |
|
||||
| `screen_y` | int | Mouse y coordinate relative to the screen |
|
||||
Reference in New Issue
Block a user