Add a docstring to action_scroll_end

This commit is contained in:
Dave Pearson
2023-01-31 13:03:23 +00:00
parent ca773f4350
commit 9e406f525e

View File

@@ -1008,6 +1008,11 @@ class Tree(Generic[TreeDataType], ScrollView, can_focus=True):
self.scroll_to_line(self.cursor_line)
def action_scroll_end(self) -> None:
"""Move the cursor to the bottom of the tree.
Note:
Here button means vertically, not branch depth.
"""
self.cursor_line = self.last_line
self.scroll_to_line(self.cursor_line)