python-matplotlib/12157.patch
2018-09-18 23:52:36 -04:00

32 lines
1.1 KiB
Diff

From bb337935d04b63d454a81e16a9ac2063a7d945c3 Mon Sep 17 00:00:00 2001
From: Antony Lee <anntzer.lee@gmail.com>
Date: Tue, 18 Sep 2018 22:46:17 +0200
Subject: [PATCH] Properly declare the interactive framework for the qt4foo
backends.
---
lib/matplotlib/backends/backend_qt4agg.py | 2 +-
lib/matplotlib/backends/backend_qt4cairo.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/matplotlib/backends/backend_qt4agg.py b/lib/matplotlib/backends/backend_qt4agg.py
index 65785bbd32b..8f4e265ac42 100644
--- a/lib/matplotlib/backends/backend_qt4agg.py
+++ b/lib/matplotlib/backends/backend_qt4agg.py
@@ -8,4 +8,4 @@
@_BackendQT5Agg.export
class _BackendQT4Agg(_BackendQT5Agg):
- pass
+ required_interactive_framework = "qt4"
diff --git a/lib/matplotlib/backends/backend_qt4cairo.py b/lib/matplotlib/backends/backend_qt4cairo.py
index f94851da382..94d703afa4e 100644
--- a/lib/matplotlib/backends/backend_qt4cairo.py
+++ b/lib/matplotlib/backends/backend_qt4cairo.py
@@ -3,4 +3,4 @@
@_BackendQT5Cairo.export
class _BackendQT4Cairo(_BackendQT5Cairo):
- pass
+ required_interactive_framework = "qt4"