Releases: Textualize/textual
Releases · Textualize/textual
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
The On decorator
https://textual.textualize.io/blog/2023/05/03/textual-0230-improves-message-handling/
[0.23.0] - 2023-05-03
Fixed
- Fixed
outline
top and bottom not handling alpha - #2371 - Fixed
!important
not applying toalign
#2420 - Fixed
!important
not applying toborder
#2420 - Fixed
!important
not applying tocontent-align
#2420 - Fixed
!important
not applying tooutline
#2420 - Fixed
!important
not applying tooverflow
#2420 - Fixed
!important
not applying toscrollbar-size
#2420 - Fixed
outline-right
not being recognised #2446
Changed
- Setting attributes with a
compute_
method will now raise anAttributeError
#2383 - Unknown psuedo-selectors will now raise a tokenizer error (previously they were silently ignored) #2445
- Breaking change:
DirectoryTree.FileSelected.path
is now always aPath
#2448 - Breaking change:
Directorytree.load_directory
renamed toDirectorytree._load_directory
#2448 - Unknown pseudo-selectors will now raise a tokenizer error (previously they were silently ignored) #2445
Added
Fix run on Windows
[0.22.3] - 2023-04-29
Fixed
- Fixed
textual run
on Windows #2406 - Fixed top border of button hover state
v0.22.2
v0.22.1
Making good Progress!
Run Textual, Run
Mostly fixes and enhancements, but there are some breaking changes in containers. See below for the details.
[0.21.0] - 2023-04-26
Changed
textual run
execs apps in a new context.- Textual console no longer parses console markup.
- Breaking change:
Container
no longer shows required scrollbars by default #2361 - Breaking change:
VerticalScroll
no longer shows a required horizontal scrollbar by default - Breaking change:
HorizontalScroll
no longer shows a required vertical scrollbar by default - Breaking change: Renamed
App.action_add_class_
toApp.action_add_class
- Breaking change: Renamed
App.action_remove_class_
toApp.action_remove_class
- Breaking change:
RadioSet
is now a single focusable widget #2372 - Breaking change: Removed
containers.Content
(usecontainers.VerticalScroll
now)
Added
- Added
-c
switch totextual run
which runs commands in a Textual dev environment. - Breaking change: standard keyboard scrollable navigation bindings have been moved off
Widget
and onto a new base class for scrollable containers (see also below addition) #2332 ScrollView
now inherits fromScrollableContainer
rather thanWidget
#2332- Containers no longer inherit any bindings from
Widget
#2331 - Added
ScrollableContainer
; a container class that binds the common navigation keys to scroll actions (see also above breaking change) #2332
Fixed
Fix for stuck tabs
A fix for an issue where the underline on tabs widgets may occasionally get stuck.
[0.20.1] - 2023-04-18
Fix
- New fix for stuck tabs underline #2229
The remove row release
[0.20.0] - 2023-04-18
Changed
- Changed signature of Driver. Technically a breaking change, but unlikely to affect anyone.
- Breaking change: Timer.start is now private, and returns None. There was no reason to call this manually, so unlikely to affect anyone.
- A clicked tab will now be scrolled to the center of its tab container #2276
- Style updates are now done immediately rather than on_idle #2304
ButtonVariant
is now exported fromtextual.widgets.button
#2264HorizontalScroll
andVerticalScroll
are now focusable by default #2317
Added
- Added
DataTable.remove_row
method #2253 - option
--port
to the commandtextual console
to specify which port the console should connect to #2258 Widget.scroll_to_center
method to scroll children to the center of container widget #2255 and #2276- Added
TabActivated
message toTabbedContent
#2260 - Added "panel" border style #2292
- Added
border-title-color
,border-title-background
,border-title-style
rules #2289 - Added
border-subtitle-color
,border-subtitle-background
,border-subtitle-style
rules #2289
Fixed
- Fixed order styles are applied in DataTable - allows combining of renderable styles and component classes #2272
- Fix empty ListView preventing bindings from firing #2281
- Fix
get_component_styles
returning incorrect values on first call when combined with pseudoclasses #2304 - Fixed
active_message_pump.get
sometimes resulting in aLookupError
#2301 - Fixed issue arising when active tab was changed too quickly in succession #2305