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 8d0b5e5

Browse filesBrowse files
committed
Use GLib.MainLoop() instead of GObject.MainLoop()
1 parent fb98a9a commit 8d0b5e5
Copy full SHA for 8d0b5e5

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎lib/matplotlib/pyplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def _backend_selection():
9696
# The mainloop is running.
9797
rcParams['backend'] = 'qt5Agg'
9898
elif 'gtk' in sys.modules and 'gi' in sys.modules:
99-
from gi.repository import GObject
100-
if GObject.MainLoop().is_running():
99+
from gi.repository import GLib
100+
if GLib.MainLoop().is_running():
101101
rcParams['backend'] = 'GTK3Agg'
102102
elif 'Tkinter' in sys.modules and not backend == 'TkAgg':
103103
# import Tkinter

0 commit comments

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