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

feat: Add button with mouse event example ✨ #35

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

kdheepak
Copy link
Contributor

@kdheepak kdheepak commented Jan 2, 2024

No description provided.

@kdheepak
Copy link
Contributor Author

kdheepak commented Jan 2, 2024

mouse-event.mov

@kdheepak
Copy link
Contributor Author

kdheepak commented Jan 2, 2024

The colors in this example aren't great but I think that's my color scheme. I'm going to clean up colors later when I get more time, and going to merge as is for now, just so that there's an example of how to use the handle_events method in the counter example.

I think we will want to revisit this example entirely and come up with a better way to showcase the features of the async template.

@kdheepak kdheepak merged commit d08c4c6 into main Jan 2, 2024
2 checks passed
@kdheepak kdheepak deleted the add-button-mouse-event-example branch January 2, 2024 05:50
Comment on lines +303 to +307
if column >= self.decrement_rect.left()
&& column <= self.decrement_rect.right()
&& row >= self.decrement_rect.top()
&& row <= self.decrement_rect.bottom()
{
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also have an helper method for doing this probably.

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

Successfully merging this pull request may close these issues.

2 participants