Skip to content

Commit e2be2f4

Browse files
committed
Merge branch 'main' into bug/4248/click-markup-crash
2 parents 564010f + 154a631 commit e2be2f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+724
-402
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## Unreleased
9+
10+
### Fixed
11+
12+
- Fixed a crash in `TextArea` when undoing an edit to a selection the selection was made backwards https://github.com/Textualize/textual/issues/4301
13+
- Fix progress bar ETA not updating when setting `total` reactive https://github.com/Textualize/textual/pull/4316
14+
- ProgressBar won't show ETA until there is at least one second of samples https://github.com/Textualize/textual/pull/4316
815

916
## [0.53.1] - 2023-03-18
1017

docs/events/app_blur.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: AppBlur
3+
---
4+
5+
::: textual.events.AppBlur
6+
options:
7+
heading_level: 1
8+
9+
## See also
10+
11+
- [AppFocus](app_focus.md)

docs/events/app_focus.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: AppFocus
3+
---
4+
5+
::: textual.events.AppFocus
6+
options:
7+
heading_level: 1
8+
9+
## See also
10+
11+
- [AppBlur](app_blur.md)

docs/events/blur.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1-
# Blur
2-
3-
The `Blur` event is sent to a widget when it loses focus.
4-
5-
- [ ] Bubbles
6-
- [ ] Verbose
7-
8-
## Attributes
9-
10-
_No other attributes_
11-
12-
## Code
13-
141
::: textual.events.Blur
2+
options:
3+
heading_level: 1
154

165
## See also
176

docs/events/click.md

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
1-
# Click
2-
3-
The `Click` event is sent to a widget when the user clicks a mouse button.
4-
5-
- [x] Bubbles
6-
- [ ] Verbose
7-
8-
## Attributes
1+
::: textual.events.Click
2+
options:
3+
heading_level: 1
94

10-
| attribute | type | purpose |
11-
|------------|------|-------------------------------------------|
12-
| `x` | int | Mouse x coordinate, relative to Widget |
13-
| `y` | int | Mouse y coordinate, relative to Widget |
14-
| `delta_x` | int | Change in x since last mouse event |
15-
| `delta_y` | int | Change in y since last mouse event |
16-
| `button` | int | Index of mouse button |
17-
| `shift` | bool | Shift key pressed if True |
18-
| `meta` | bool | Meta key pressed if True |
19-
| `ctrl` | bool | Ctrl key pressed if True |
20-
| `screen_x` | int | Mouse x coordinate relative to the screen |
21-
| `screen_y` | int | Mouse y coordinate relative to the screen |
5+
See [MouseEvent][textual.events.MouseEvent] for the full list of properties and methods.
226

23-
## Code
7+
## See also
248

25-
::: textual.events.Click
9+
- [Enter](enter.md)
10+
- [Leave](leave.md)
11+
- [MouseDown](mouse_down.md)
12+
- [MouseEvent][textual.events.MouseEvent]
13+
- [MouseMove](mouse_move.md)
14+
- [MouseScrollDown](mouse_scroll_down.md)
15+
- [MouseScrollUp](mouse_scroll_up.md)
16+
- [MouseUp](mouse_up.md)

docs/events/descendant_blur.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1-
# DescendantBlur
2-
3-
The `DescendantBlur` event is sent to a widget when one of its children loses focus.
4-
5-
- [x] Bubbles
6-
- [x] Verbose
7-
8-
## Attributes
9-
10-
_No other attributes_
11-
12-
## Code
1+
---
2+
title: DescendantBlur
3+
---
134

145
::: textual.events.DescendantBlur
6+
options:
7+
heading_level: 1
158

169
## See also
1710

11+
- [AppBlur](app_blur.md)
12+
- [AppFocus](app_focus.md)
1813
- [Blur](blur.md)
1914
- [DescendantFocus](descendant_focus.md)
2015
- [Focus](focus.md)

docs/events/descendant_focus.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1-
# DescendantFocus
2-
3-
The `DescendantFocus` event is sent to a widget when one of its descendants receives focus.
4-
5-
- [x] Bubbles
6-
- [x] Verbose
7-
8-
## Attributes
9-
10-
_No other attributes_
11-
12-
## Code
1+
---
2+
title: DescendantFocus
3+
---
134

145
::: textual.events.DescendantFocus
6+
options:
7+
heading_level: 1
158

169
## See also
1710

11+
- [AppBlur](app_blur.md)
12+
- [AppFocus](app_focus.md)
1813
- [Blur](blur.md)
1914
- [DescendantBlur](descendant_blur.md)
2015
- [Focus](focus.md)

docs/events/enter.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
# Enter
2-
3-
The `Enter` event is sent to a widget when the mouse pointer first moves over a widget.
4-
5-
- [ ] Bubbles
6-
- [x] Verbose
7-
8-
## Attributes
9-
10-
_No other attributes_
11-
12-
## Code
13-
141
::: textual.events.Enter
2+
options:
3+
heading_level: 1
4+
5+
## See also
6+
7+
- [Click](click.md)
8+
- [Leave](leave.md)
9+
- [MouseDown](mouse_down.md)
10+
- [MouseMove](mouse_move.md)
11+
- [MouseScrollDown](mouse_scroll_down.md)
12+
- [MouseScrollUp](mouse_scroll_up.md)
13+
- [MouseUp](mouse_up.md)

docs/events/focus.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
# Focus
2-
3-
The `Focus` event is sent to a widget when it receives input focus.
4-
5-
- [ ] Bubbles
6-
- [ ] Verbose
7-
8-
## Attributes
9-
10-
_No other attributes_
11-
12-
## Code
13-
141
::: textual.events.Focus
2+
options:
3+
heading_level: 1
154

165
## See also
176

7+
- [AppBlur](app_blur.md)
8+
- [AppFocus](app_focus.md)
189
- [Blur](blur.md)
1910
- [DescendantBlur](descendant_blur.md)
2011
- [DescendantFocus](descendant_focus.md)

docs/events/hide.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# Hide
2-
3-
The `Hide` event is sent to a widget when it is hidden from view.
4-
5-
- [ ] Bubbles
6-
- [ ] Verbose
7-
8-
## Attributes
9-
10-
_No additional attributes_
11-
12-
## Code
13-
141
::: textual.events.Hide
2+
options:
3+
heading_level: 1

0 commit comments

Comments
 (0)