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

Browse filesBrowse files
authored
handle usecase where QT_API is specified with some capitals (#19245)
* handle usecase where QT_API is specified with some capitals * Update qt_compat.py
1 parent 72f2de3 commit 792fc13
Copy full SHA for 792fc13

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎lib/matplotlib/backends/qt_compat.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/qt_compat.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
QT_API_PYSIDE = "PySide"
2828
QT_API_PYQT = "PyQt4" # Use the old sip v1 API (Py3 defaults to v2).
2929
QT_API_ENV = os.environ.get("QT_API")
30+
if QT_API_ENV is not None:
31+
QT_API_ENV = QT_API_ENV.lower()
3032
# Mapping of QT_API_ENV to requested binding. ETS does not support PyQt4v1.
3133
# (https://github.com/enthought/pyface/blob/master/pyface/qt/__init__.py)
3234
_ETS = {"pyqt5": QT_API_PYQT5, "pyside2": QT_API_PYSIDE2,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.