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

Skip to content

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