-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Clarify scope of MouseEvent attributes #14188
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
Conversation
Whether the event is a double-click. | ||
Whether the event is a double-click. This applies only to | ||
'button_press_event' and is False otherwise. In particular, it's | ||
not used in 'button_release_event'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"not used" -> "never set"? "always False"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mhh, these don't really match my intention. "never set" and "always False" both sound like the value is still meaningful but has a fixed value. I really would like to emphsize that for button_release_event dblclick
is not part of the logic/API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear to me whether "not used" means "the attribute does not exist" or "the attribute exists but can take any value, which is meaningless" (well I guess that's more a problem in C (uninitialized variable)) or "is always False".
Anyways, it's not a big deal, feel free to self-merge if you're not going to change this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to merge as is since I don't have an idea how to express this more clearly without getting very verbose. Anyway, it's an improvement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am happy with this wording, but do not want to merge over @anntzer 's concern.
…188-on-v3.1.x Backport PR #14188 on branch v3.1.x (Clarify scope of MouseEvent attributes)
PR Summary
MouseEvent
is a generic class for all mouse events. Some of its attributes do not have a meaning for specific events. This PR documents that.Closes #4001.