Skip to content

Commit

Permalink
Merge branch 'main' into fix-button-render-with-console-markup
Browse files Browse the repository at this point in the history
  • Loading branch information
TomJGooding authored Mar 26, 2024
2 parents 4b0b633 + 9550f0b commit 0d72f05
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 15 deletions.
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,38 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## Unreleased

### Fixed

- Exceptions inside `Widget.compose` or workers weren't bubbling up in tests https://github.com/Textualize/textual/issues/4282
- Fixed `Button` not rendering correctly with console markup https://github.com/Textualize/textual/issues/4328

### Added

- Added `Document.start` and `end` location properties for convenience https://github.com/Textualize/textual/pull/4267

## [0.54.0] - 2023-03-26
## [0.54.0] - 2024-03-26

### Fixed

- Fixed a crash in `TextArea` when undoing an edit to a selection the selection was made backwards https://github.com/Textualize/textual/issues/4301
- Fixed issue with flickering scrollbars https://github.com/Textualize/textual/pull/4315
- Fixed issue where narrow TextArea would repeatedly wrap due to scrollbar appearing/disappearing https://github.com/Textualize/textual/pull/4334
- Fix progress bar ETA not updating when setting `total` reactive https://github.com/Textualize/textual/pull/4316
- Exceptions inside `Widget.compose` or workers weren't bubbling up in tests https://github.com/Textualize/textual/issues/4282

### Changed

- ProgressBar won't show ETA until there is at least one second of samples https://github.com/Textualize/textual/pull/4316
- `Input` waits until an edit has been made, after entry to the widget, before offering a suggestion https://github.com/Textualize/textual/pull/4335

### Added

- Added `Document.start` and `end` location properties for convenience https://github.com/Textualize/textual/pull/4267

## [0.53.1] - 2023-03-18
## [0.53.1] - 2024-03-18

### Fixed

- Fixed issue with data binding https://github.com/Textualize/textual/pull/4308

## [0.53.0] - 2023-03-18
## [0.53.0] - 2024-03-18

### Added

Expand Down
4 changes: 4 additions & 0 deletions docs/events/load.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
::: textual.events.Load
options:
heading_level: 1

## See also

- [Mount](mount.md)
5 changes: 5 additions & 0 deletions docs/events/mount.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
::: textual.events.Mount
options:
heading_level: 1

## See also

- [Load](load.md)
- [Unmount](unmount.md)
2 changes: 2 additions & 0 deletions docs/events/mouse_capture.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ title: MouseCapture

## See also

- [capture_mouse][textual.widget.Widget.capture_mouse]
- [release_mouse][textual.widget.Widget.release_mouse]
- [MouseRelease](mouse_release.md)
2 changes: 2 additions & 0 deletions docs/events/mouse_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ title: MouseRelease

## See also

- [capture_mouse][textual.widget.Widget.capture_mouse]
- [release_mouse][textual.widget.Widget.release_mouse]
- [MouseCapture](mouse_capture.md)
4 changes: 4 additions & 0 deletions docs/events/unmount.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
::: textual.events.Unmount
options:
heading_level: 1

## See also

- [Mount](mount.md)
19 changes: 13 additions & 6 deletions src/textual/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Load(Event, bubble=False):
"""
Sent when the App is running but *before* the terminal is in application mode.
Use this event to run any set up that doesn't require any visuals such as loading
Use this event to run any setup that doesn't require any visuals such as loading
configuration and binding keys.
- [ ] Bubbles
Expand Down Expand Up @@ -129,6 +129,9 @@ def __rich_repr__(self) -> rich.repr.Result:
class Compose(Event, bubble=False, verbose=True):
"""Sent to a widget to request it to compose and mount children.
This event is used internally by Textual.
You won't typically need to explicitly handle it,
- [ ] Bubbles
- [X] Verbose
"""
Expand All @@ -151,7 +154,7 @@ class Unmount(Event, bubble=False, verbose=False):


class Show(Event, bubble=False):
"""Sent when a widget has become visible.
"""Sent when a widget is first displayed.
- [ ] Bubbles
- [ ] Verbose
Expand All @@ -164,13 +167,17 @@ class Hide(Event, bubble=False):
- [ ] Bubbles
- [ ] Verbose
A widget may be hidden by setting its `visible` flag to `False`, if it is no longer in a layout,
or if it has been offset beyond the edges of the terminal.
Sent when any of the following conditions apply:
- The widget is removed from the DOM.
- The widget is no longer displayed because it has been scrolled or clipped from the terminal or its container.
- The widget has its `display` attribute set to `False`.
- The widget's `display` style is set to `"none"`.
"""


class Ready(Event, bubble=False):
"""Sent to the app when the DOM is ready.
"""Sent to the `App` when the DOM is ready and the first frame has been displayed.
- [ ] Bubbles
- [ ] Verbose
Expand Down Expand Up @@ -232,7 +239,7 @@ class Key(InputEvent):
Args:
key: The key that was pressed.
character: A printable character or ``None`` if it is not printable.
character: A printable character or `None` if it is not printable.
"""

__slots__ = ["key", "character", "aliases"]
Expand Down

0 comments on commit 0d72f05

Please sign in to comment.