| 7 | |
| 8 | |
| 9 | class 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 | |
| 28 | TOOLTIP_TIMEOUT: Final[float] = 0.4 + 0.1 |
no outgoing calls
searching dependent graphs…