Skip to content

How can I make widget (and its descendants) insensitive to both mouse and keyboard? #1515

Answered by davep
crftwr asked this question in Q&A
Discussion options

You must be logged in to vote

Normally you'd do that with a widget's disabled property. See this bit of code in one of Textual's examples -- it's used to disable the game while the "you've won" message is displayed (and of course later to reenable the game when a new game starts).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by crftwr
Comment options

You must be logged in to vote
2 replies
@davep
Comment options

@crftwr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants