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 7828fdf + 8d0b5e5 commit cffca75Copy full SHA for cffca75
lib/matplotlib/pyplot.py
@@ -96,8 +96,8 @@ def _backend_selection():
96
# The mainloop is running.
97
rcParams['backend'] = 'qt5Agg'
98
elif 'gtk' in sys.modules and 'gi' in sys.modules:
99
- from gi.repository import GObject
100
- if GObject.MainLoop().is_running():
+ from gi.repository import GLib
+ if GLib.MainLoop().is_running():
101
rcParams['backend'] = 'GTK3Agg'
102
elif 'Tkinter' in sys.modules and not backend == 'TkAgg':
103
# import Tkinter
0 commit comments