##// END OF EJS Templates
FIX: make sure all of the Qt backends map to the qt event loop
Thomas A Caswell -
Show More
@@ -41,8 +41,6 b' backends = {'
41 # most part it's just a reverse of the above dict, but we also need to add a
41 # most part it's just a reverse of the above dict, but we also need to add a
42 # few others that map to the same GUI manually:
42 # few others that map to the same GUI manually:
43 backend2gui = dict(zip(backends.values(), backends.keys()))
43 backend2gui = dict(zip(backends.values(), backends.keys()))
44 # Our tests expect backend2gui to just return 'qt'
45 backend2gui['Qt4Agg'] = 'qt'
46 # In the reverse mapping, there are a few extra valid matplotlib backends that
44 # In the reverse mapping, there are a few extra valid matplotlib backends that
47 # map to the same GUI support
45 # map to the same GUI support
48 backend2gui["GTK"] = backend2gui["GTKCairo"] = "gtk"
46 backend2gui["GTK"] = backend2gui["GTKCairo"] = "gtk"
@@ -50,6 +48,13 b' backend2gui["GTK3Cairo"] = "gtk3"'
50 backend2gui["GTK4Cairo"] = "gtk4"
48 backend2gui["GTK4Cairo"] = "gtk4"
51 backend2gui["WX"] = "wx"
49 backend2gui["WX"] = "wx"
52 backend2gui["CocoaAgg"] = "osx"
50 backend2gui["CocoaAgg"] = "osx"
51 # There needs to be a hysteresis here as the new QtAgg Matplotlib backend
52 # supports either Qt5 or Qt6 and the IPython qt event loop support Qt4, Qt5,
53 # and Qt6.
54 backend2gui["QtAgg"] = "qt"
55 backend2gui["Qt4Agg"] = "qt"
56 backend2gui["Qt5Agg"] = "qt"
57
53 # And some backends that don't need GUI integration
58 # And some backends that don't need GUI integration
54 del backend2gui["nbAgg"]
59 del backend2gui["nbAgg"]
55 del backend2gui["agg"]
60 del backend2gui["agg"]
General Comments 0
You need to be logged in to leave comments. Login now