Textual v0.5.0 Release Notes
Release Date: 2022-11-20 // over 1 year ago-
โ Added
- Add get_child_by_id and get_widget_by_id, remove get_child https://github.com/Textualize/textual/pull/1146
- โ Add easing parameter to Widget.scroll_* methods https://github.com/Textualize/textual/pull/1144
- โ Added Widget.call_later which invokes a callback on idle.
DOMNode.ancestors
no longer includesself
.- Added
DOMNode.ancestors_with_self
, which retains the old behaviour ofDOMNode.ancestors
. - ๐ Improved the speed of
DOMQuery.remove
. - โ Added DataTable.clear
- โ Added low-level
textual.walk
methods. - ๐ It is now possible to
await
aWidget.remove
. https://github.com/Textualize/textual/issues/1094 - ๐ It is now possible to
await
aDOMQuery.remove
. Note that this changes the return value ofDOMQuery.remove
, which used to returnself
. https://github.com/Textualize/textual/issues/1094 - Added Pilot.wait_for_animation
- โ Added
Widget.move_child
https://github.com/Textualize/textual/issues/1121 - โ Added a
Label
widget https://github.com/Textualize/textual/issues/1190 - ๐ Support lazy-instantiated Screens (callables in App.SCREENS) https://github.com/Textualize/textual/pull/1185
- 0๏ธโฃ Display of keys in footer has more sensible defaults https://github.com/Textualize/textual/pull/1213
- Add App.get_key_display, allowing custom key_display App-wide https://github.com/Textualize/textual/pull/1213
๐ Changed
- ๐ Watchers are now called immediately when setting the attribute if they are synchronous. https://github.com/Textualize/textual/pull/1145
- Widget.call_later has been renamed to Widget.call_after_refresh.
- Button variant values are now checked at runtime. https://github.com/Textualize/textual/issues/1189
- โ Added caching of some properties in Styles object
๐ Fixed
- ๐ Fixed DataTable row not updating after add https://github.com/Textualize/textual/issues/1026
- ๐ Fixed issues with animation. Now objects of different types may be animated.
- ๐ Fixed containers with transparent background not showing borders https://github.com/Textualize/textual/issues/1175
- ๐ Fixed auto-width in horizontal containers https://github.com/Textualize/textual/pull/1155
- ๐ Fixed Input cursor invisible when placeholder empty https://github.com/Textualize/textual/pull/1202
- ๐ Fixed deadlock when removing widgets from the App https://github.com/Textualize/textual/pull/1219