Add a docstring to action_scroll_home

This commit is contained in:
Dave Pearson
2023-01-31 13:02:34 +00:00
parent b2aecfa847
commit ca773f4350

View File

@@ -1003,6 +1003,7 @@ class Tree(Generic[TreeDataType], ScrollView, can_focus=True):
self.scroll_to_line(self.cursor_line)
def action_scroll_home(self) -> None:
"""Move the cursor to the top of the tree."""
self.cursor_line = 0
self.scroll_to_line(self.cursor_line)