Skip to content

Releases: Textualize/textual

The Commanding release

15 Sep 15:43
4dc8358
Compare
Choose a tag to compare

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 and Header.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

  • Widget.notify and App.notify are now thread-safe #3275
  • Breaking change: Widget.notify and App.notify now return None #3275
  • App.unnotify is now private (renamed to App._unnotify) #3275
  • Markdown.load will now attempt to scroll to a related heading if an anchor is provided #3244

The Rule release

05 Sep 12:57
11ba91a
Compare
Choose a tag to compare

[0.36.0] - 2023-09-05

Added

  • TCSS styles layer and layers can be strings #3169
  • App.return_code for the app return code #3202
  • Added animate switch to Tree.scroll_to_line and Tree.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 the DataTable constructor.
  • Fixed push_screen not updating Screen.CSS styles #3217

Fixed

  • Fixed flicker when calling pop_screen multiple times #3126
  • Fixed setting styles.layout not updating #3047
  • Fixed flicker when scrolling tree up or down a line #3206

v0.35.1: version bump (#3181)

27 Aug 07:22
2519063
Compare
Choose a tag to compare

[0.35.1]

Fixed

  • Fixed flash of 80x24 interface in textual-web

Textual web driver

26 Aug 16:21
2519063
Compare
Choose a tag to compare

A small release, feature wise. Mainly to add support for Textual web on Windows.

[0.35.0]

Added

  • Ability to enable/disable tabs via the reactive disabled in tab panes #3152
  • Textual-web driver support for Windows

Fixed

  • Could not hide/show/disable/enable tabs in nested TabbedContent #3150

The hidden Tabs release

22 Aug 12:06
bc1af58
Compare
Choose a tag to compare

[0.34.0] - 2023-08-22

Added

  • Methods TabbedContent.disable_tab and TabbedContent.enable_tab #3112
  • Methods Tabs.disable and Tabs.enable #3112
  • Messages Tab.Disabled, Tab.Enabled, Tabs.TabDisabled and Tabs.Enabled #3112
  • Methods TabbedContent.hide_tab and TabbedContent.show_tab #3112
  • Methods Tabs.hide and Tabs.show #3112
  • Messages Tabs.TabHidden and Tabs.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

  • Fixed auto height container with default grid-rows #1597
  • Fixed page_up and page_down bug in DataTable when show_header = False #3093

Digits Widget

15 Aug 16:07
4e87a0f
Compare
Choose a tag to compare

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 and Screen receive MouseMove 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 and BORDER_SUBTITLE classvars to Widget #3097

Changed

  • DescendantBlur and DescendantFocus can now be used with @on decorator

The Log release

03 Aug 09:15
879c985
Compare
Choose a tag to compare

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

01 Aug 10:10
Compare
Choose a tag to compare

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 a bool, errors now propagate #2956
  • Breaking change: the default style of a DataTable now has max-height: 100% #2959

Fixed

  • Fixed a crash when a SelectionList had a prompt wider than itself #2900
  • Fixed a bug where Click events were bubbling up from Switch widgets #2366
  • Fixed a crash when using empty CSS variables #1849
  • Fixed issue with tabs in TextLog #3007
  • Fixed a bug with DataTable hover highlighting #2909

The Notification Release

17 Jul 13:12
ec58b91
Compare
Choose a tag to compare

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

  • Fixed CancelledError issue with timer #2854
  • Fixed Toggle Buttons issue with not being clickable/hoverable #2930

Refactored dev tools

03 Jul 14:45
65e81c5
Compare
Choose a tag to compare

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 to DataTable.add_column for populating existing rows #2836
  • Added can-focus pseudo-class to target widgets that may receive focus

Fixed

  • Fixed crash when columns were added to populated DataTable #2836
  • Fixed issues with opacity on Screens #2616
  • Fixed style problem with selected selections in a non-focused selection list #2768