We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 405c2de + b23396c commit c7af9bcCopy full SHA for c7af9bc
lib/matplotlib/backends/backend_qt5.py
@@ -125,13 +125,13 @@ def _create_qApp():
125
"""
126
Only one qApp can exist at a time, so check before creating one.
127
128
- if QtWidgets.QApplication.startingUp():
+
129
+ if qApp is None:
130
if DEBUG:
131
print("Starting up QApplication")
132
global qApp
133
app = QtWidgets.QApplication.instance()
134
if app is None:
-
135
# check for DISPLAY env variable on X11 build of Qt
136
if hasattr(QtGui, "QX11Info"):
137
display = os.environ.get('DISPLAY')
0 commit comments