The highlight of this release, is the new keyline rule which draws lines around widgets in the margins.
This is similar to border
, but keyline
can overlap with neighbouring widgets. Here's a screenshot. Note how the green borders around the widgets intersect with each other.
See below for the full changelog.
[0.43.0] - 2023-11-28
Fixed
- Fixed mouse targeting issue in
TextArea
when tabs were not fully expanded #3725 - Fixed
Select
not updating after changing theprompt
reactive #2983 - Fixed flicker when updating Markdown #3757
Added
- Added experimental Canvas class #3669
- Added
keyline
rule #3669 - Widgets can now have an ALLOW_CHILDREN (bool) classvar to disallow adding children to a widget #3758
- Added the ability to set the
label
property of aCheckbox
#3765 - Added the ability to set the
label
property of aRadioButton
#3765 - Added app focus/blur for textual-web #3767
Changed
- Method
MarkdownTableOfContents.set_table_of_contents
renamed toMarkdownTableOfContents.rebuild_table_of_contents
#3730 - Exception
Tree.UnknownNodeID
moved out ofTree
, import fromtextual.widgets.tree
#3730 - Exception
TreeNode.RemoveRootError
moved out ofTreeNode
, import fromtextual.widgets.tree
#3730 - Optimized startup time #3753
- App.COMMANDS or Screen.COMMANDS can now accept a callable which returns a command palette provider #3756