Skip to content

Commit c1411b8

Browse files
committed
FIX: non-tk backends
1 parent 8c69832 commit c1411b8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mpl_gui/_manage_backend.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,12 @@ def select_gui_toolkit(newbackend=None):
9898
if hasattr(mod, "Backend"):
9999
backend_mod = mod.Backend
100100
else:
101-
102101
class backend_mod(matplotlib.backend_bases._Backend):
103-
locals().update(vars())
102+
locals().update(vars(mod))
103+
104+
@classmethod
105+
def mainloop(cls):
106+
return mod.Show().mainloop()
104107

105108
rc_params_string = newbackend
106109

0 commit comments

Comments
 (0)