github Textualize/textual v0.10.0
Cursor-tastic release

latest releases: v0.85.2, v0.85.1, v0.85.0...
21 months ago

Version 0.10.0 sees new cursor types on the DataTable to select rows and column, and corresponding events.

datatable-cursors-16jan23.mov

There are also a number of fixes and optimizations. See below for details.

[0.10.0] - 2023-01-19

Added

  • Added TreeNode.parent -- a read-only property for accessing a node's parent #1397
  • Added public TreeNode label access via TreeNode.label #1396
  • Added read-only public access to the children of a TreeNode via TreeNode.children #1398
  • Added Tree.get_node_by_id to allow getting a node by its ID #1535
  • Added a Tree.NodeHighlighted message, giving a on_tree_node_highlighted event handler #1400
  • Added a inherit_component_classes subclassing parameter to control whether component classes are inherited from base classes #1399
  • Added diagnose as a textual command #1542
  • Added row and column cursors to DataTable #1547
  • Added an optional parameter selector to the methods Screen.focus_next and Screen.focus_previous that enable using a CSS selector to narrow down which widgets can get focus #1196

Changed

  • MouseScrollUp and MouseScrollDown now inherit from MouseEvent and have attached modifier keys. #1458
  • Fail-fast and print pretty tracebacks for Widget compose errors #1505
  • Added Widget._refresh_scroll to avoid expensive layout when scrolling #1524
  • events.Paste now bubbles #1434
  • Improved error message when style flag none is mixed with other flags (e.g., when setting text-style) #1420
  • Clock color in the Header widget now matches the header color #1459
  • Programmatic calls to scroll now optionally scroll even if overflow styling says otherwise (introduces a new force parameter to all the scroll_* methods) #1201
  • COMPONENT_CLASSES are now inherited from base classes #1399
  • Watch methods may now take no parameters
  • Added compute parameter to reactive
  • A TypeError raised during compose now carries the full traceback
  • Removed base class NodeMessage from which all node-related Tree events inherited

Fixed

  • The styles scrollbar-background-active and scrollbar-color-hover are no longer ignored #1480
  • The widget Placeholder can now have its width set to auto #1508
  • Behavior of widget Input when rendering after programmatic value change and related scenarios #1477 #1443
  • DataTable.show_cursor now correctly allows cursor toggling #1547
  • Fixed cursor not being visible on DataTable mount when fixed_columns were used #1547
  • Fixed DataTable cursors not resetting to origin on clear() #1601
  • Fixed TextLog wrapping issue #1554
  • Fixed issue with TextLog not writing anything before layout #1498
  • Fixed an exception when populating a child class of ListView purely from compose #1588
  • Fixed freeze in tests #1608

Don't miss a new textual release

NewReleases is sending notifications on new releases.