Getting down with Markdown
This release adds an enhanced Markdown widget. See the blog post for details:
https://textual.textualize.io/blog/2023/02/15/textual-0110-adds-a-beautiful-markdown-widget/
[0.11.0] - 2023-02-15
Added
- Added
TreeNode.expand_all#1430 - Added
TreeNode.collapse_all#1430 - Added
TreeNode.toggle_all#1430 - Added the coroutines
Animator.wait_until_completeandpilot.wait_for_scheduled_animationsthat allow waiting for all current and scheduled animations #1658 - Added the method
Animator.is_being_animatedthat checks if an attribute of an object is being animated or is scheduled for animation - Added more keyboard actions and related bindings to
Input#1676 - Added App.scroll_sensitivity_x and App.scroll_sensitivity_y to adjust how many lines the scroll wheel moves the scroll position #928
- Added Shift+scroll wheel and ctrl+scroll wheel to scroll horizontally
- Added
Tree.action_toggle_nodeto toggle a node without selecting, and bound it to Space #1433 - Added
Tree.resetto fully reset aTree#1437 - Added
DataTable.sortto sort rows #1638 - Added
DataTable.get_cellto retrieve a cell by column/row keys #1638 - Added
DataTable.get_cell_atto retrieve a cell by coordinate #1638 - Added
DataTable.update_cellto update a cell by column/row keys #1638 - Added
DataTable.update_cell_atto update a cell at a coordinate #1638 - Added
DataTable.ordered_rowsproperty to retrieveRows as they're currently ordered #1638 - Added
DataTable.ordered_columnsproperty to retrieveColumns as they're currently ordered #1638 - Added
DataTable.coordinate_to_cell_keyto find the key for the cell at a coordinate #1638 - Added
DataTable.is_valid_coordinate#1638 - Added
DataTable.is_valid_row_index#1638 - Added
DataTable.is_valid_column_index#1638 - Added attributes to events emitted from
DataTableindicating row/column/cell keys #1638 - Added
DataTable.get_rowto retrieve the values from a row by key #1786 - Added
DataTable.get_row_atto retrieve the values from a row by index #1786 - Added
DataTable.get_columnto retrieve the values from a column by key #1786 - Added
DataTable.get_column_atto retrieve the values from a column by index #1786 - Added
DataTable.HeaderSelectedwhich is posted when header label clicked #1788 - Added
DOMNode.watchandDOMNode.is_attachedmethods #1750 - Added
DOMNode.css_treewhich is a renderable that shows the DOM and CSS #1778 - Added
DOMNode.children_viewwhich is a view on to a nodes children list, use for querying #1778 - Added
MarkdownandMarkdownViewerwidgets. - Added
--screenshotoption totextual run
Changed
- Breaking change:
TreeNodecan no longer be imported fromtextual.widgets; it is now available viafrom textual.widgets.tree import TreeNode. #1637 Treenow shows a (subdued) cursor for a highlighted node when focus has moved elsewhere #1471DataTable.add_rownow acceptskeyargument to uniquely identify the row #1638DataTable.add_columnnow acceptskeyargument to uniquely identify the column #1638DataTable.add_rowandDataTable.add_columnnow return lists of keys identifying the added rows/columns #1638- Breaking change:
DataTable.get_cell_valuerenamed toDataTable.get_value_at#1638 DataTable.row_countis now a property #1638- Breaking change:
DataTable.cursor_cellrenamed toDataTable.cursor_coordinate#1638- The method
validate_cursor_cellwas renamed tovalidate_cursor_coordinate. - The method
watch_cursor_cellwas renamed towatch_cursor_coordinate.
- The method
- Breaking change:
DataTable.hover_cellrenamed toDataTable.hover_coordinate#1638- The method
validate_hover_cellwas renamed tovalidate_hover_coordinate.
- The method
- Breaking change:
DataTable.datastructure changed, and will be made private in upcoming release #1638 - Breaking change:
DataTable.refresh_cellwas renamed toDataTable.refresh_coordinate#1638 - Breaking change:
DataTable.get_row_heightnow takes aRowKeyargument instead of a row index #1638 - Breaking change:
DataTable.datarenamed toDataTable._data(it's now private) #1786 - The
_filtermodule was made public (now calledfilter) #1638 - Breaking change: renamed
CheckboxtoSwitch#1746 App.install_screenname is no longer optional #1778App.querynow only includes the current screen #1778DOMNode.treenow displays simple DOM structure only #1778App.install_screennow returns None rather than AwaitMount #1778DOMNode.childrenis now a simple sequence, the NodesList is exposed asDOMNode._nodes#1778DataTablecursor can now enter fixed columns #1799