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

Class PriorityOverlapApp

tests/test_binding_inheritance.py:574–590  ·  view source on GitHub ↗

An application with a priority binding.

Source from the content-addressed store, hash-verified

572
573
574class PriorityOverlapApp(AppKeyRecorder):
575 """An application with a priority binding."""
576
577 BINDINGS = [
578 Binding("0", "record('app_0')", "0", priority=False),
579 Binding("a", "record('app_a')", "a", priority=True),
580 Binding("b", "record('app_b')", "b", priority=False),
581 Binding("c", "record('app_c')", "c", priority=False),
582 Binding("d", "record('app_d')", "c", priority=True),
583 Binding("e", "record('app_e')", "e", priority=True),
584 Binding("f", "record('app_f')", "f", priority=False),
585 ]
586
587 SCREENS = {"main": PriorityOverlapScreen}
588
589 def on_mount(self) -> None:
590 self.push_screen("main")
591
592
593async def test_overlapping_priority_bindings() -> None:

Callers 1

Calls 1

BindingClass · 0.90

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…