Show More
@@ -43,11 +43,11 b' backend2gui = dict(zip(backends.values(), backends.keys()))' | |||||
43 | backend2gui['Qt4Agg'] = 'qt' |
|
43 | backend2gui['Qt4Agg'] = 'qt' | |
44 | # 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 | |
45 | # map to the same GUI support |
|
45 | # map to the same GUI support | |
46 |
backend2gui[ |
|
46 | backend2gui["GTK"] = backend2gui["GTKCairo"] = "gtk" | |
47 |
backend2gui[ |
|
47 | backend2gui["GTK3Cairo"] = "gtk3" | |
48 |
backend2gui[ |
|
48 | backend2gui["GTK4Cairo"] = "gtk4" | |
49 |
backend2gui[ |
|
49 | backend2gui["WX"] = "wx" | |
50 |
backend2gui[ |
|
50 | backend2gui["CocoaAgg"] = "osx" | |
51 | # And some backends that don't need GUI integration |
|
51 | # And some backends that don't need GUI integration | |
52 | del backend2gui["nbAgg"] |
|
52 | del backend2gui["nbAgg"] | |
53 | del backend2gui["agg"] |
|
53 | del backend2gui["agg"] |
@@ -21,6 +21,7 b' from gi.repository import GLib' | |||||
21 | # Code |
|
21 | # Code | |
22 | #----------------------------------------------------------------------------- |
|
22 | # ----------------------------------------------------------------------------- | |
23 |
|
23 | |||
|
24 | ||||
24 | class _InputHook: |
|
25 | class _InputHook: | |
25 | def __init__(self, context): |
|
26 | def __init__(self, context): | |
26 | self._quit = False |
|
27 | self._quit = False |
@@ -8,7 +8,9 b' from gi.repository import GLib' | |||||
8 | class _InputHook: |
|
8 | class _InputHook: | |
9 | def __init__(self, context): |
|
9 | def __init__(self, context): | |
10 | self._quit = False |
|
10 | self._quit = False | |
11 | GLib.io_add_watch(context.fileno(), GLib.PRIORITY_DEFAULT, GLib.IO_IN, self.quit) |
|
11 | GLib.io_add_watch( | |
|
12 | context.fileno(), GLib.PRIORITY_DEFAULT, GLib.IO_IN, self.quit | |||
|
13 | ) | |||
12 |
|
14 | |||
13 | def quit(self, *args, **kwargs): |
|
15 | def quit(self, *args, **kwargs): | |
14 | self._quit = True |
|
16 | self._quit = True |
General Comments 0
You need to be logged in to leave comments.
Login now