8000 Merge pull request #3360 from tacaswell/qApp_fix · vikitripathi/matplotlib@c7af9bc · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit c7af9bc

Browse files
committed
Merge pull request matplotlib#3360 from tacaswell/qApp_fix
BUG : modified logic on starting qApp
2 parents 405c2de + b23396c commit c7af9bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ def _create_qApp():
125125
"""
126126
Only one qApp can exist at a time, so check before creating one.
127127
"""
128-
if QtWidgets.QApplication.startingUp():
128+
129+
if qApp is None:
129130
if DEBUG:
130131
print("Starting up QApplication")
131132
global qApp
132133
app = QtWidgets.QApplication.instance()
133134
if app is None:
134-
135135
# check for DISPLAY env variable on X11 build of Qt
136136
if hasattr(QtGui, "QX11Info"):
137137
display = os.environ.get('DISPLAY')

0 commit comments

Comments
 (0)
0