Skip to content

Commit e3e39ab

Browse files
committed
Merge branch 'main' into fix-datatable-change-max-height-back-to-100-percent
2 parents 90895f2 + 9550f0b commit e3e39ab

Some content is hidden

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

82 files changed

+2276
-983
lines changed

CHANGELOG.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,37 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## Unreleased
99

10+
### Fixed
11+
12+
- Exceptions inside `Widget.compose` or workers weren't bubbling up in tests https://github.com/Textualize/textual/issues/4282
13+
- Fixed `DataTable` scrolling issues by changing `max-height` back to 100% https://github.com/Textualize/textual/issues/4286
14+
15+
### Added
16+
17+
- Added `Document.start` and `end` location properties for convenience https://github.com/Textualize/textual/pull/4267
18+
19+
## [0.54.0] - 2024-03-26
20+
21+
### Fixed
22+
23+
- Fixed a crash in `TextArea` when undoing an edit to a selection the selection was made backwards https://github.com/Textualize/textual/issues/4301
24+
- Fixed issue with flickering scrollbars https://github.com/Textualize/textual/pull/4315
25+
- Fixed issue where narrow TextArea would repeatedly wrap due to scrollbar appearing/disappearing https://github.com/Textualize/textual/pull/4334
26+
- Fix progress bar ETA not updating when setting `total` reactive https://github.com/Textualize/textual/pull/4316
27+
28+
### Changed
29+
30+
- ProgressBar won't show ETA until there is at least one second of samples https://github.com/Textualize/textual/pull/4316
31+
- `Input` waits until an edit has been made, after entry to the widget, before offering a suggestion https://github.com/Textualize/textual/pull/4335
32+
33+
## [0.53.1] - 2024-03-18
34+
35+
### Fixed
36+
37+
- Fixed issue with data binding https://github.com/Textualize/textual/pull/4308
38+
39+
## [0.53.0] - 2024-03-18
40+
1041
### Added
1142

1243
- Mapping of ANSI colors to hex codes configurable via `App.ansi_theme_dark` and `App.ansi_theme_light` https://github.com/Textualize/textual/pull/4192
@@ -34,7 +65,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3465
- Fixed a style leak from `TabbedContent` https://github.com/Textualize/textual/issues/4232
3566
- Fixed active hidden scrollbars not releasing the mouse https://github.com/Textualize/textual/issues/4274
3667
- Fixed the mouse not being released when hiding a `TextArea` while mouse selection is happening https://github.com/Textualize/textual/issues/4292
37-
- Fixed `DataTable` scrolling issues by changing `max-height` back to 100% https://github.com/Textualize/textual/issues/4286
68+
- Fix mouse scrolling not working when mouse cursor is over a disabled child widget https://github.com/Textualize/textual/issues/4242
3869

3970
### Changed
4071

@@ -49,10 +80,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4980
- Changed `Tabs`
5081
- Changed `TextArea`
5182
- Changed `Tree`
83+
- Improved ETA calculation for ProgressBar https://github.com/Textualize/textual/pull/4271
5284
- BREAKING: `AppFocus` and `AppBlur` are now posted when the terminal window gains or loses focus, if the terminal supports this https://github.com/Textualize/textual/pull/4265
5385
- When the terminal window loses focus, the currently-focused widget will also lose focus.
5486
- When the terminal window regains focus, the previously-focused widget will regain focus.
5587
- TextArea binding for <kbd>ctrl</kbd>+<kbd>k</kbd> will now delete the line if the line is empty https://github.com/Textualize/textual/issues/4277
88+
- The active tab (in `Tabs`) / tab pane (in `TabbedContent`) can now be unset https://github.com/Textualize/textual/issues/4241
5689

5790
## [0.52.1] - 2024-02-20
5891

@@ -1779,6 +1812,11 @@ https://textual.textualize.io/blog/2022/11/08/version-040/#version-040
17791812
- New handler system for messages that doesn't require inheritance
17801813
- Improved traceback handling
17811814

1815+
[0.54.0]: https://github.com/Textualize/textual/compare/v0.53.1...v0.54.0
1816+
[0.53.1]: https://github.com/Textualize/textual/compare/v0.53.0...v0.53.1
1817+
[0.53.0]: https://github.com/Textualize/textual/compare/v0.52.1...v0.53.0
1818+
[0.52.1]: https://github.com/Textualize/textual/compare/v0.52.0...v0.52.1
1819+
[0.52.0]: https://github.com/Textualize/textual/compare/v0.51.0...v0.52.0
17821820
[0.51.0]: https://github.com/Textualize/textual/compare/v0.50.1...v0.51.0
17831821
[0.50.1]: https://github.com/Textualize/textual/compare/v0.50.0...v0.50.1
17841822
[0.50.0]: https://github.com/Textualize/textual/compare/v0.49.0...v0.50.0

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)