The King of releases
https://textual.textualize.io/blog/2023/05/08/textual-0240-adds-a-select-control/
[0.24.0] - 2023-05-08
Fixed
- Fixed crash when creating a
DirectoryTreestarting anywhere other than. - Fixed line drawing in
TreewhenTree.show_rootisTrue#2397 - Fixed line drawing in
Treenot marking branches as selected when first getting focus #2397
Changed
- The DataTable cursor is now scrolled into view when the cursor coordinate is changed programmatically #2459
- run_worker exclusive parameter is now
Falseby default #2470 - Added
always_updateas an optional argument forreactive.var - Made Binding description default to empty string, which is equivalent to show=False #2501
- Modified Message to allow it to be used as a dataclass #2501
- Decorator
@onaccepts arbitrary**kwargsto apply selectors to attributes of the message #2498
Added
- Property
controlas alias for attributetabsinTabsmessages #2483 - Experimental: Added "overlay" rule #2501
- Experimental: Added "constrain" rule #2501
- Added textual.widgets.Select #2501
- Added Region.translate_inside #2501
TabbedContentnow takes kwargsid,name,classes, anddisabled, upon initialization, like other widgets #2497- Method
DataTable.move_cursor#2472 - Added
OptionList.add_options#2508 - Added
TreeNode.is_root#2510 - Added
TreeNode.remove_children#2510 - Added
TreeNode.remove#2510 - Added classvar
Message.ALLOW_SELECTOR_MATCH#2498 - Added
ALLOW_SELECTOR_MATCHto all built-in messages associated with widgets #2498 - Markdown document sub-widgets now reference the container document
- Table of contents of a markdown document now references the document
- Added the
controlproperty to messagesDirectoryTree.FileSelectedListViewHighlightedSelected
MarkdownTableOfContentsUpdatedTableOfContentsSelectedLinkClicked
OptionListOptionHighlightedOptionSelected
RadioSet.ChangedTabContent.TabActivatedTreeNodeSelectedNodeHighlightedNodeExpandedNodeCollapsed