Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/textual
/ handle_yes
Method
handle_yes
docs/examples/guide/screens/questions01.py:20–21 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
18
19
@on(Button.Pressed,
"#yes"
)
20
def
handle_yes(self) -> None:
21
self.dismiss(True)
# (1)!
22
23
@on(Button.Pressed,
"#no"
)
24
def
handle_no(self) -> None:
Callers
nothing calls this directly
Calls
1
dismiss
Method · 0.80
Tested by
no test coverage detected