Skip to content
Discussion options

You must be logged in to vote

I can think of a few ways of hacking that in. We could also expose that via a simple method on App perhaps. But what is the use-case? Where would you want to disable the mouse?

Easiest way I can think of currently is to catch the mouse events on app. Something like this:

async def on_event(self, event: events.Event) -> None:
    if isinstance(event, MouseEvent):
        event.prevent_default()

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@davep
Comment options

Comment options

You must be logged in to vote
5 replies
@jacobtomlinson
Comment options

@willmcgugan
Comment options

@jacobtomlinson
Comment options

@willmcgugan
Comment options

@jacobtomlinson
Comment options

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