Releases: Textualize/textual
Releases · Textualize/textual
The Commanding release
https://textual.textualize.io/blog/2023/09/15/textual-0370-adds-a-command-palette/
[0.37.0] - 2023-09-15
Added
- Added the command palette #3058
Input
is now validated when focus moves out of it #3193- Attribute
Input.validate_on
(and__init__
parameter of the same name) to customise when validation occurs #3193 - Screen-specific (sub-)title attributes #3199:
Screen.TITLE
Screen.SUB_TITLE
Screen.title
Screen.sub_title
- Properties
Header.screen_title
andHeader.screen_sub_title
#3199 - Added
DirectoryTree.DirectorySelected
message #3200 - Added
widgets.Collapsible
contributed by Sunyoung Yoo #2989
Fixed
- Fixed a crash when removing an option from an
OptionList
while the mouse is hovering over the last option #3270 - Fixed a crash in
MarkdownViewer
when clicking on a link that contains an anchor #3094 - Fixed wrong message pump in pop_screen #3315
Changed
The Rule release
[0.36.0] - 2023-09-05
Added
- TCSS styles
layer
andlayers
can be strings #3169 App.return_code
for the app return code #3202- Added
animate
switch toTree.scroll_to_line
andTree.scroll_to_node
#3210 - Added
Rule
widget #3209 - Added App.current_mode to get the current mode #3233
Changed
- Reactive callbacks are now scheduled on the message pump of the reactable that is watching instead of the owner of reactive attribute #3065
- Callbacks scheduled with
call_next
will now have the same prevented messages as when the callback was scheduled #3065 - Added
cursor_type
to theDataTable
constructor. - Fixed
push_screen
not updating Screen.CSS styles #3217
Fixed
v0.35.1: version bump (#3181)
[0.35.1]
Fixed
- Fixed flash of 80x24 interface in textual-web
Textual web driver
The hidden Tabs release
[0.34.0] - 2023-08-22
Added
- Methods
TabbedContent.disable_tab
andTabbedContent.enable_tab
#3112 - Methods
Tabs.disable
andTabs.enable
#3112 - Messages
Tab.Disabled
,Tab.Enabled
,Tabs.TabDisabled
andTabs.Enabled
#3112 - Methods
TabbedContent.hide_tab
andTabbedContent.show_tab
#3112 - Methods
Tabs.hide
andTabs.show
#3112 - Messages
Tabs.TabHidden
andTabs.TabShown
#3112 - Added
ListView.extend
method to append multiple items #3012
Changed
- grid-columns and grid-rows now accept an
auto
token to detect the optimal size #3107 - LoadingIndicator now has a minimum height of 1 line.
Fixed
Digits Widget
Some fixes, and a new Digits widget
Screen.Recording.2023-08-15.at.17.12.11.mov
[0.33.0] - 2023-08-15
Fixed
- Fixed unintuitive sizing behaviour of TabbedContent #2411
- Fixed relative units not always expanding auto containers #3059
- Fixed background refresh #3055
- Fixed
SelectionList.clear_options
#3075 MouseMove
events bubble up from widgets.App
andScreen
receiveMouseMove
events even if there's no Widget under the cursor. #2905
Added
- Added an interface for replacing prompt of an individual option in an
OptionList
#2603 - Added
DirectoryTree.reload_node
method #2757 - Added widgets.Digit #3073
- Added
BORDER_TITLE
andBORDER_SUBTITLE
classvars to Widget #3097
Changed
- DescendantBlur and DescendantFocus can now be used with @on decorator
The Log release
New Log widget, and TextLog has been renamed to RichLog (breaking change)
Screen.Recording.2023-08-02.at.14.40.33.mov
[0.32.0] - 2023-08-03
Added
- Added widgets.Log
- Added Widget.is_vertical_scroll_end, Widget.is_horizontal_scroll_end, Widget.is_vertical_scrollbar_grabbed, Widget.is_horizontal_scrollbar_grabbed
Changed
- Breaking change: Renamed TextLog to RichLog
Worker update and more
Fixes and updates. Also a few breaking changes, see below for details...
[0.31.0] - 2023-08-01
Added
- Added App.begin_capture_print, App.end_capture_print, Widget.begin_capture_print, Widget.end_capture_print #2952
- Added the ability to run async methods as thread workers #2938
- Added
App.stop_animation
#2786 - Added
Widget.stop_animation
#2786
Changed
- Breaking change: Creating a thread worker now requires that a
thread=True
keyword argument is passed #2938 - Breaking change:
Markdown.load
no longer captures all errors and returns abool
, errors now propagate #2956 - Breaking change: the default style of a
DataTable
now hasmax-height: 100%
#2959
Fixed
The Notification Release
https://textual.textualize.io/blog/2023/07/17/textual-0300-adds-desktop-style-notifications/
[0.30.0] - 2023-07-17
Added
- Added
DataTable.remove_column
method #2899 - Added notifications #2866
- Added
on_complete
callback to scroll methods #2903
Fixed
Refactored dev tools
https://textual.textualize.io/blog/2023/07/03/textual-0290-refactors-dev-tools/
[0.29.0] - 2023-07-03
Changed
- Factored dev tools (
textual
command) in to external lib (textual-dev
).
Added
- Added can-focus pseudo-class to target widgets that may receive focus
- Make
Markdown.update
optionally awaitable #2838 - Added
default
parameter toDataTable.add_column
for populating existing rows #2836 - Added can-focus pseudo-class to target widgets that may receive focus