Skip to content

fixed Qt5 compat#2

Merged
blink1073 merged 1 commit intoblink1073:pyqt5from
flying-sheep:pyqt5
Dec 31, 2014
Merged

fixed Qt5 compat#2
blink1073 merged 1 commit intoblink1073:pyqt5from
flying-sheep:pyqt5

Conversation

@flying-sheep
Copy link
Copy Markdown

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This logic is not quite right. The reason for this try cascade is that when mpl added QT5 support we re-named qt4_compat -> qt_compat as it smooths over the differences between pyqt4/pysides/pyqt5 so you can not assume that if this import succeeds then you want to use qt5

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

when does that import fail then? if matplotlib is older than the version that added Qt5 support?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

for mpl versions < 1.4.0

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

except for the PEP8 violation ;)

blink1073 added a commit that referenced this pull request Dec 31, 2014
@blink1073 blink1073 merged commit 7da4d5a into blink1073:pyqt5 Dec 31, 2014
@blink1073
Copy link
Copy Markdown
Owner

Thanks @flying-sheep!

@flying-sheep flying-sheep deleted the pyqt5 branch December 31, 2014 11:57
@flying-sheep
Copy link
Copy Markdown
Author

no problem :D

blink1073 pushed a commit that referenced this pull request Jul 12, 2015
Switched to cnp where applicable.
blink1073 pushed a commit that referenced this pull request Sep 4, 2015
blink1073 pushed a commit that referenced this pull request Dec 14, 2015
Avoids crash of active contour example when run with old scipy version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants