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
DirectoryTree
starting anywhere other than.
- Fixed line drawing in
Tree
whenTree.show_root
isTrue
#2397 - Fixed line drawing in
Tree
not 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
False
by default #2470 - Added
always_update
as 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
@on
accepts arbitrary**kwargs
to apply selectors to attributes of the message #2498
Added
- Property
control
as alias for attributetabs
inTabs
messages #2483 - Experimental: Added "overlay" rule #2501
- Experimental: Added "constrain" rule #2501
- Added textual.widgets.Select #2501
- Added Region.translate_inside #2501
TabbedContent
now 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_MATCH
to 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
control
property to messagesDirectoryTree.FileSelected
ListView
Highlighted
Selected
Markdown
TableOfContentsUpdated
TableOfContentsSelected
LinkClicked
OptionList
OptionHighlighted
OptionSelected
RadioSet.Changed
TabContent.TabActivated
Tree
NodeSelected
NodeHighlighted
NodeExpanded
NodeCollapsed