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

Skip to content

Conversation

@t20100
Copy link
Contributor

@t20100 t20100 commented Sep 8, 2017

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
Copy link
Contributor

@anntzer anntzer left a comment

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
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
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