[0.28.0] - 2023-06-19
Added
- The devtools console now confirms when CSS files have been successfully loaded after a previous error #2716
- Class variable
CSS
to screens #2137 - Class variable
CSS_PATH
to screens #2137 - Added
cursor_foreground_priority
andcursor_background_priority
toDataTable
#2736 - Added Region.center
- Added
center
parameter toWidget.scroll_to_region
- Added
origin_visible
parameter toWidget.scroll_to_region
- Added
origin_visible
parameter toWidget.scroll_to_center
- Added
TabbedContent.tab_count
#2751 - Added
TabbedContent.add_pane
#2751 - Added
TabbedContent.remove_pane
#2751 - Added
TabbedContent.clear_panes
#2751 - Added
TabbedContent.Cleared
#2751
Fixed
- Fixed setting
TreeNode.label
on an existingTree
node not immediately refreshing #2713 - Correctly implement
__eq__
protocol in DataTable #2705 - Fixed exceptions in Pilot tests being silently ignored #2754
- Fixed issue where internal data of
OptionList
could be invalid for short window afterclear_options
#2754 - Fixed
Tooltip
causing aquery_one
on a loneStatic
to fail #2723 - Nested widgets wouldn't lose focus when parent is disabled #2772
- Fixed the
Tabs
Underline
highlight getting "lost" in some extreme situations #2751
Changed
- Breaking change: The
@on
decorator will now match a message class and any child classes #2746 - Breaking change: Styles update to checkbox, radiobutton, OptionList, Select, SelectionList, Switch #2777
Tabs.add_tab
is now optionally awaitable #2778Tabs.add_tab
now takesbefore
andafter
arguments to position a new tab #2778Tabs.remove_tab
is now optionally awaitable #2778- Breaking change:
Tabs.clear
has been changed from returningself
to being optionally awaitable #2778