Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

New stlye qt calls#2382

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mdboom merged 8 commits intomatplotlib:masterfromtacaswell:new_stlye_qt
Sep 10, 2013
Merged

New stlye qt calls#2382

mdboom merged 8 commits intomatplotlib:masterfromtacaswell:new_stlye_qt
Sep 10, 2013

Conversation

tacaswell
Copy link
Member

Changed all qt calls to 'new style' due to a bug in PySide (see#2378)

In the course of this I discovered that there was some funny merging/un-merging of the patches from@mspacek that resulted in there being nocol2hex defined. It may be worth a separate issue to make sure nothing else got lost.

Everything seems to work, but I could not figure out how to get the font editor dialog to come up (I suspect that the italics and bold labels won't show up).

Also includes a bunch of pep8 cleanup

@mdboom
Copy link
Member

Sorry, that merge mistake is probably mine. It looks like we'll have to fix it on 1.3.x as well. I'll do it over there, and we'll leave this PR as-is to cover it on master.

@mdboom
Copy link
Member

Oops. Forget that. 1.3.x seems fine.

@mdboom
Copy link
Member

This seems like the right thing to do -- moderizing rather than putting band-aids that work aroundunicode_literals.

One thing, though -- I had to do the following, or I got a segfault at startup:

diff --git a/lib/matplotlib/backends/backend_qt4.py b/lib/matplotlib/backends/backend_qt4.pyindex 6ae8083..991edc7 100644--- a/lib/matplotlib/backends/backend_qt4.py+++ b/lib/matplotlib/backends/backend_qt4.py@@ -82,7 +82,7 @@ def _create_qApp():                 if display is None or not re.search(':\d', display):                     raise RuntimeError('Invalid DISPLAY variable')-            qApp = QtGui.QApplication([" "])  # probably fine, not used by QT to resolve anything+            qApp = QtGui.QApplication([str(" ")])  # probably fine, not used by QT to resolve anything             qApp.lastWindowClosed.connect(qApp.quit)         else:             qApp = app

@tacaswell
Copy link
MemberAuthor

There are many failures in travis from errors coming out of locale.py.

@tacaswell
Copy link
MemberAuthor

@mdboom What OS are you testing on? I find it a bit worrying that I was not getting segfaults without that last change.

@mdboom
Copy link
Member

I'm on Fedora 19, which has pyside 1.1.0 installed from the standard package (and this is Python 2.7).

@tacaswell
Copy link
MemberAuthor

Does this need anything else to get merged?

@mdboom
Copy link
Member

Nope. Merging.

@mdboommdboom closed thisSep 10, 2013
@tacaswell
Copy link
MemberAuthor

It doesn't look like this actually got merged, just closed.

@mdboommdboom reopened thisSep 10, 2013
mdboom added a commit that referenced this pull requestSep 10, 2013
@mdboommdboom merged commitb4c9ced intomatplotlib:masterSep 10, 2013
@mdboom
Copy link
Member

Sorry about that. I think it's good now.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@tacaswell@mdboom

[8]ページ先頭

©2009-2025 Movatter.jp