Releases: Textualize/textual
Releases · Textualize/textual
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
ButtonVariantis now exported fromtextual.widgets.button#2264HorizontalScrollandVerticalScrollare now focusable by default #2317
Added
- Added
DataTable.remove_rowmethod #2253 - option
--portto the commandtextual consoleto specify which port the console should connect to #2258 Widget.scroll_to_centermethod to scroll children to the center of container widget #2255 and #2276- Added
TabActivatedmessage toTabbedContent#2260 - Added "panel" border style #2292
- Added
border-title-color,border-title-background,border-title-stylerules #2289 - Added
border-subtitle-color,border-subtitle-background,border-subtitle-stylerules #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_stylesreturning incorrect values on first call when combined with pseudoclasses #2304 - Fixed
active_message_pump.getsometimes resulting in aLookupError#2301 - Fixed issue arising when active tab was changed too quickly in succession #2305
Fix for broken vw and vh units
DataTable cursor and Directory filtering
Mostly a bugfix release. But we also have filtering on the DirectoryTree, and the DataTable page up / down now moves the cursor as well as the view.
[0.19.0] - 2023-04-07
Added
- Added support for filtering a
DirectoryTree#2215
Changed
- Allowed border_title and border_subtitle to accept Text objects
- Added additional line around titles
- When a container is auto, relative dimensions in children stretch the container. #2221
- DataTable page up / down now move cursor
Fixed
New Worker API
https://textual.textualize.io/blog/2023/04/04/textual-0180-adds-api-for-managing-concurrent-workers/
[0.18.0] - 2023-04-04
Added
- Added Worker API #2182
Changed
- Breaking change: Markdown.update is no longer a coroutine #2182
[Fixed]
RadioSetis now far less likely to reportpressed_buttonasNone#2203
Bugfix for scrolling under dock
Modal fixes
A few fixes related to the thew modal screens, and ordered Markdown lists.
[0.17.2] - 2023-04-02
[Fixed]
- Fixed bindings persistance #1613
- The
Markdownwidget now auto-increments ordered lists #2002 - Fixed modal bindings #2194
- Fix binding enter to active button #2194
[Changed]
- tab and shift+tab are now defined on Screen.
Fixes WIndows cursor and ctrl+click freeze
You can see right through us!
https://textual.textualize.io/blog/2023/03/29/textual-0170-adds-translucent-screens-and-option-list/
[0.17.0] - 2023-03-29
Fixed
- Issue with parsing action strings whose arguments contained quoted closing parenthesis #2112
- Issues with parsing action strings with tuple arguments #2112
- Issue with watching for CSS file changes #2128
- Fix for tabs not invalidating #2125
- Fixed scrollbar layers issue #1358
- Fix for interaction between pseudo-classes and widget-level render caches #2155
Changed
- DataTable now has height: auto by default. #2117
- Textual will now render strings within renderables (such as tables) as Console Markup by default. You can wrap your text with rich.Text() if you want the original behavior. #2120
- Some widget methods now return
selfinstead ofNone#2102:Widget:refresh,focus,reset_focusButton.pressDataTable:clear,refresh_coordinate,refresh_row,refresh_column,sortPlacehoder.cycle_variantSwitch.toggleTabs.clearTextLog:write,clearTreeNode:expand,expand_all,collapse,collapse_all,toggle,toggle_allTree:clear,reset
- Screens with alpha in their background color will now blend with the background. #2139
- Added "thick" border style. #2139
- message_pump.app will now set the active app if it is not already set.
- DataTable now has max height set to 100vh
Added
- Added auto_scroll attribute to TextLog #2127
- Added scroll_end switch to TextLog.write #2127
- Added
Widget.get_pseudo_class_state#2155 - Added Screen.ModalScreen which prevents App from handling bindings. #2139
- Added TEXTUAL_LOG env var which should be a path that Textual will write verbose logs to (textual devtools is generally preferred) #2148
- Added textual.logging.TextualHandler logging handler
- Added Query.set_classes, DOMNode.set_classes, and
classessetter for Widget #1081 - Added
OptionList#2154
Tabbed content and border titles
See blog post...
https://textual.textualize.io/blog/2023/03/22/textual-0160-adds-tabbedcontent-and-border-titles/
[0.16.0] - 2023-03-22
Added
- Added
parser_factoryargument toMarkdownandMarkdownViewerconstructors #2075 - Added
HorizontalScroll#1957 - Added
Center#1957 - Added
Middle#1957 - Added
VerticalScroll(mimicking the old behaviour ofVertical) #1957 - Added
Widget.border_titleandWidget.border_subtitleto set border (sub)title for a widget #1864 - Added CSS styles
border_title_alignandborder_subtitle_align. - Added
TabbedContentwidget #2059 - Added
get_child_by_typemethod to widgets / app #2059 - Added
Widget.render_strmethod #2059 - Added TEXTUAL_DRIVER environment variable
Changed
- Dropped "loading-indicator--dot" component style from LoadingIndicator #2050
- Tabs widget now sends Tabs.Cleared when there is no active tab.
- Breaking change: changed default behaviour of
Vertical(seeVerticalScroll) #1957 - The default
overflowstyle forHorizontalwas changed tohidden hidden#1957 DirectoryTreealso acceptspathlib.Pathobjects as the path to list #1438
Removed
- Removed
senderattribute from messages. It's now just private (_sender). #2071