Skip to content

Releases: Textualize/textual

The King of releases

08 May 16:48
dc10256
Compare
Choose a tag to compare

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 when Tree.show_root is True #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 for reactive.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 attribute tabs in Tabs 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 kwargs id, name, classes, and disabled, 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 messages
    • DirectoryTree.FileSelected
    • ListView
      • Highlighted
      • Selected
    • Markdown
      • TableOfContentsUpdated
      • TableOfContentsSelected
      • LinkClicked
    • OptionList
      • OptionHighlighted
      • OptionSelected
    • RadioSet.Changed
    • TabContent.TabActivated
    • Tree
      • NodeSelected
      • NodeHighlighted
      • NodeExpanded
      • NodeCollapsed

The On decorator

03 May 12:27
e5c54a3
Compare
Choose a tag to compare

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 to align #2420
  • Fixed !important not applying to border #2420
  • Fixed !important not applying to content-align #2420
  • Fixed !important not applying to outline #2420
  • Fixed !important not applying to overflow #2420
  • Fixed !important not applying to scrollbar-size #2420
  • Fixed outline-right not being recognised #2446

Changed

  • Setting attributes with a compute_ method will now raise an AttributeError #2383
  • Unknown psuedo-selectors will now raise a tokenizer error (previously they were silently ignored) #2445
  • Breaking change: DirectoryTree.FileSelected.path is now always a Path #2448
  • Breaking change: Directorytree.load_directory renamed to Directorytree._load_directory #2448
  • Unknown pseudo-selectors will now raise a tokenizer error (previously they were silently ignored) #2445

Added

  • Watch methods can now optionally be private #2382
  • Added DirectoryTree.path reactive attribute #2448
  • Added DirectoryTree.FileSelected.node #2463
  • Added DirectoryTree.reload #2448
  • Added textual.on decorator #2398

Fix run on Windows

28 Apr 19:58
8fac2c7
Compare
Choose a tag to compare

[0.22.3] - 2023-04-29

Fixed

  • Fixed textual run on Windows #2406
  • Fixed top border of button hover state

v0.22.2

28 Apr 17:11
c5053ec
Compare
Choose a tag to compare

[0.22.2] - 2023-04-29

Added

  • Added TreeNode.tree as a read-only public attribute #2413

Fixed

  • Fixed superfluous style updates for focus-within pseudo-selector

v0.22.1

28 Apr 11:39
e15df80
Compare
Choose a tag to compare

[0.22.1] - 2023-04-28

Fixed

  • Fixed timer issue #2416
  • Fixed textual run issue #2391

Making good Progress!

27 Apr 14:08
124c45e
Compare
Choose a tag to compare

[0.22.0] - 2023-04-27

Fixed

  • Fixed broken fr units when there is a min or max dimension #2378
  • Fixed plain text in Markdown code blocks with no syntax being difficult to read #2400

Added

  • Added ProgressBar widget #2333

Changed

  • All textual.containers are now 1fr in relevant dimensions by default #2386

Run Textual, Run

26 Apr 12:58
f20df9b
Compare
Choose a tag to compare

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_ to App.action_add_class
  • Breaking change: Renamed App.action_remove_class_ to App.action_remove_class
  • Breaking change: RadioSet is now a single focusable widget #2372
  • Breaking change: Removed containers.Content (use containers.VerticalScroll now)

Added

  • Added -c switch to textual 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 from ScrollableContainer rather than Widget #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

  • Fixed dark mode toggles in a "child" screen not updating a "parent" screen #1999
  • Fixed "panel" border not exposed via CSS
  • Fixed TabbedContent.active changes not changing the actual content #2352
  • Fixed broken color on macOS Terminal #2359

Fix for stuck tabs

18 Apr 15:48
4981eff
Compare
Choose a tag to compare

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

18 Apr 12:44
cc41a7f
Compare
Choose a tag to compare

[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 from textual.widgets.button #2264
  • HorizontalScroll and VerticalScroll are now focusable by default #2317

Added

  • Added DataTable.remove_row method #2253
  • option --port to the command textual 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 to TabbedContent #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 a LookupError #2301
  • Fixed issue arising when active tab was changed too quickly in succession #2305

Fix for broken vw and vh units

10 Apr 15:52
4f7b2d0
Compare
Choose a tag to compare

A bugfix release, see below...

[0.19.1] - 2023-04-10

Fixed

  • Fix viewport units using wrong viewport size #2247
  • Fixed layout not clearing arrangement cache #2249