Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting a click event on a widget to a function. #3679

Closed
JoeZiminski opened this issue Nov 14, 2023 · 0 comments
Closed

Connecting a click event on a widget to a function. #3679

JoeZiminski opened this issue Nov 14, 2023 · 0 comments

Comments

@JoeZiminski
Copy link

Is it possible to connect a function to a click event on a specific widget? In particular, I am interested in linking a function execution to double-clicking on a particular Input widget. As far as I can see, the _on_click() method of Input does not have any kind of emit signal and the generic on_click method does not need to hold information about the clicked widget. I presume it is possible based on the x,y position of the click and widget but was wondering if there is an easier way.

Apologies if this is an obvious question, I could not find an answer after a reasonably thorough search of docs / issues but I may be looking for the wrong thing!

@Textualize Textualize deleted a comment from github-actions bot Nov 14, 2023
@Textualize Textualize locked and limited conversation to collaborators Nov 14, 2023
@davep davep converted this issue into discussion #3680 Nov 14, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant