Version 0.10.0 sees new cursor types on the DataTable to select rows and column, and corresponding events.
datatable-cursors-16jan23.mov
There are also a number of fixes and optimizations. See below for details.
[0.10.0] - 2023-01-19
Added
- Added
TreeNode.parent
-- a read-only property for accessing a node's parent #1397 - Added public
TreeNode
label access viaTreeNode.label
#1396 - Added read-only public access to the children of a
TreeNode
viaTreeNode.children
#1398 - Added
Tree.get_node_by_id
to allow getting a node by its ID #1535 - Added a
Tree.NodeHighlighted
message, giving aon_tree_node_highlighted
event handler #1400 - Added a
inherit_component_classes
subclassing parameter to control whether component classes are inherited from base classes #1399 - Added
diagnose
as atextual
command #1542 - Added
row
andcolumn
cursors toDataTable
#1547 - Added an optional parameter
selector
to the methodsScreen.focus_next
andScreen.focus_previous
that enable using a CSS selector to narrow down which widgets can get focus #1196
Changed
MouseScrollUp
andMouseScrollDown
now inherit fromMouseEvent
and have attached modifier keys. #1458- Fail-fast and print pretty tracebacks for Widget compose errors #1505
- Added Widget._refresh_scroll to avoid expensive layout when scrolling #1524
events.Paste
now bubbles #1434- Improved error message when style flag
none
is mixed with other flags (e.g., when settingtext-style
) #1420 - Clock color in the
Header
widget now matches the header color #1459 - Programmatic calls to scroll now optionally scroll even if overflow styling says otherwise (introduces a new
force
parameter to all thescroll_*
methods) #1201 COMPONENT_CLASSES
are now inherited from base classes #1399- Watch methods may now take no parameters
- Added
compute
parameter to reactive - A
TypeError
raised duringcompose
now carries the full traceback - Removed base class
NodeMessage
from which all node-relatedTree
events inherited
Fixed
- The styles
scrollbar-background-active
andscrollbar-color-hover
are no longer ignored #1480 - The widget
Placeholder
can now have its width set toauto
#1508 - Behavior of widget
Input
when rendering after programmatic value change and related scenarios #1477 #1443 DataTable.show_cursor
now correctly allows cursor toggling #1547- Fixed cursor not being visible on
DataTable
mount whenfixed_columns
were used #1547 - Fixed
DataTable
cursors not resetting to origin onclear()
#1601 - Fixed TextLog wrapping issue #1554
- Fixed issue with TextLog not writing anything before layout #1498
- Fixed an exception when populating a child class of
ListView
purely fromcompose
#1588 - Fixed freeze in tests #1608