Blog post: https://textual.textualize.io/blog/2023/02/24/textual-0120-adds-syntactical-sugar-and-batch-updates/
Some additions to the API. Now all widgets may be disabled. There is a new batch_update context manager on App, and a prevent context manager to temporarily prevent message types from being sent. Plus usual fixes. Details below.
[0.12.0] - 2023-02-24
Added
- Added
App.batch_update#1832 - Added horizontal rule to Markdown #1832
- Added
Widget.disabled#1785 - Added
DOMNode.notify_style_updateto replacemessages.StylesUpdatedmessage #1861 - Added
MessagePump.preventcontext manager to temporarily suppress a given message type #1866
Changed
- Scrolling by page now adds to current position.
- Markdown lists have been polished: a selection of bullets, better alignment of numbers, style tweaks #1832
- Added alternative method of composing Widgets #1847
Removed
- Removed
screen.visible_widgetsandscreen.widgets - Removed
StylesUpdatemessage. #1861