Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX: be forgiving about the event for enterEvent not having a pos #11622

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

Merged
merged 1 commit into from
Jul 11, 2018

Conversation

tacaswell
Copy link
Member

closes #11607

The event object passed in from PyQt4 does not have a pos attribute.
Be forgiving of this and fallback to None. This matches the fallback
behavior in backend_bases if xy is not passed to enter_notify_event.

attn @lkjell

@tacaswell tacaswell added Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. GUI: Qt labels Jul 10, 2018
@tacaswell tacaswell added this to the v3.0 milestone Jul 10, 2018
closes matplotlib#11607

The event object passed in from PyQt4 does not have a `pos` attribute.
Be forgiving of this and fallback to None.  This matches the fallback
behavior in backend_bases if xy is not passed to `enter_notify_event`.
@tacaswell tacaswell force-pushed the fix_qt4_exceptions branch from 7fd74ae to 5d3bb78 Compare July 10, 2018 21:29
@tacaswell tacaswell changed the title FIX: be forgiving about the event for enteEvent not having a pos FIX: be forgiving about the event for enterEvent not having a pos Jul 10, 2018
@anntzer anntzer merged commit 19d5fbc into matplotlib:master Jul 11, 2018
@tacaswell tacaswell deleted the fix_qt4_exceptions branch January 20, 2020 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI: Qt Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError: 'QEvent' object has no attribute 'pos'
4 participants