MCPcopy
hub / github.com/Textualize/textual / TooltipApp

Class TooltipApp

tests/test_tooltips.py:9–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9class TooltipApp(App[None]):
10 TOOLTIP_DELAY = 0.4
11 CSS = """
12 Static {
13 width: 1fr;
14 height: 1fr;
15 }
16 """
17
18 @staticmethod
19 def tip(static: Static) -> Static:
20 static.tooltip = "This is a test tooltip"
21 return static
22
23 def compose(self) -> ComposeResult:
24 yield Static(id="mr-pink")
25 yield self.tip(Static(id="mr-blue"))
26
27
28TOOLTIP_TIMEOUT: Final[float] = 0.4 + 0.1

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…