Lines Matching full:tree
18 from textual.widgets import Button, Footer, Header, Input, Label, Sparkline, Static, Tree
19 from textual.widgets.tree import TreeNode
27 """Abstraction for the data of value in the tree."""
52 """A metric in the tree."""
90 """A PMU and event within the tree."""
244 """Expand select a node in the tree."""
250 node.tree.select_node(node)
251 node.tree.scroll_to_node(node)
258 tree: Tree[TreeValue] = self.query_one("#root", Tree)
260 tree.action_cursor_up()
262 tree.action_cursor_down()
293 tree: Tree[str] = self.query_one("#root", Tree)
300 if not cursor_seen and node == tree.cursor_node:
314 (_, self.cur_search_result) = find_search_results(event, tree.root)
334 """Collapse the part of the tree currently on."""
335 tree: Tree[str] = self.query_one("#root", Tree)
336 node = tree.cursor_node
339 node.tree.scroll_to_node(node.parent)
440 def metric_event_tree() -> Tree:
441 """Create tree of PMUs and metricgroups with events or metrics under."""
442 tree: Tree[TreeValue] = Tree("Root", id="root")
443 pmus = tree.root.add("PMUs")
461 metrics = tree.root.add("Metrics")
491 tree.root.expand()
492 return tree
503 @on(Tree.NodeSelected)
504 def on_tree_node_selected(self, event: Tree.NodeSelected[TreeValue]) -> None:
505 """Called when a tree node is selected, selecting the event."""