Skip to content

Fix matplotlib corrupting PySide - #9169

Merged
tacaswell merged 2 commits into
matplotlib:masterfrom
t20100:fix-restore-init-pyside
Sep 18, 2017
Merged

tacaswell merged 2 commits into
matplotlib:masterfrom
t20100:fix-restore-init-pyside

Conversation

@t20100

@t20100 t20100 commented Sep 8, 2017

Copy link
Copy Markdown
Contributor

PR Summary

This PR avoids matplotlib Qt backend to delete QWidget.__init__ when using PySide.
This resulted in exceptions when instantiating other QWidgets after the instantiation of a FigureCanvasQTAgg.

I tested with PySide, PyQt4 and PyQt5 with both python 2.7 and 3.4 on Debian8.
I could not test it with PySide2.
Code to reproduce is available in #9162.

Addresses #9162.

PR Checklist

@dstansby dstansby added GUI: Qt Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labels Sep 8, 2017
@dstansby dstansby added this to the 2.1 (next point release) milestone Sep 8, 2017

@anntzer anntzer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@tacaswell
tacaswell merged commit 4b50e49 into matplotlib:master Sep 18, 2017
@tacaswell

Copy link
Copy Markdown
Member

@t20100 Thanks for the investigation and the fix!

Congratulations on your first matplotlib PR 🎉

tacaswell added a commit that referenced this pull request Sep 18, 2017
@tacaswell

Copy link
Copy Markdown
Member

backported to v2.1.x as 6ab5288

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.

4 participants