Skip to content
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

Wrong bind for ButtonPress #115

Open
robochopbg opened this issue Nov 27, 2024 · 2 comments
Open

Wrong bind for ButtonPress #115

robochopbg opened this issue Nov 27, 2024 · 2 comments

Comments

@robochopbg
Copy link

robochopbg commented Nov 27, 2024

Nicely done i like this tooltip !!!

ButtonPress goes to mouse btn3.
Change to ButtonPress-1 and mouse btn1/left click works fine.

def _init_bindings(self) -> list[Binding]:
"""Initialize the bindings."""
bindings = [
Binding(self.widget, "", self.on_enter),
Binding(self.widget, "", self.on_leave),
Binding(self.widget, "", self.on_leave),
]
if self.follow:
bindings.append(
Binding(self.widget, "", self._update_tooltip_coords)
)
return bindings

@brianzhouzc
Copy link
Contributor

brianzhouzc commented Dec 3, 2024

I'm pretty sure this is the expected behaviour. It's meant to hide the tooltip whenever the user interacts with a widget.

@robochopbg
Copy link
Author

robochopbg commented Dec 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants