github Textualize/textual v0.24.0
The King of releases

latest releases: v0.71.1, v0.70.0, v0.69.0...
14 months ago

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

Don't miss a new textual release

NewReleases is sending notifications on new releases.