From 9e406f525e04c9b3f85f88a6ca33aeb3e205d74f Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 31 Jan 2023 13:03:23 +0000 Subject: [PATCH] Add a docstring to action_scroll_end --- src/textual/widgets/_tree.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/textual/widgets/_tree.py b/src/textual/widgets/_tree.py index 18464a018..0d6ac4baf 100644 --- a/src/textual/widgets/_tree.py +++ b/src/textual/widgets/_tree.py @@ -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)