File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 95
95
#
96
96
# This is also used if you do content translation via gettext catalogs.
97
97
# Usually you set "language" from the command line for these cases.
98
- language = None
98
+ # language = None
99
99
100
100
# List of patterns, relative to source directory, that match files and
101
101
# directories to ignore when looking for source files.
Original file line number Diff line number Diff line change 12
12
sys .modules ["matplotlib.pyplot" ] = None
13
13
14
14
15
- class TestCanvas (FigureCanvasBase ):
16
- def __init__ (self , * args , ** kwargs ):
17
- super ().__init__ (* args , ** kwargs )
18
- self .call_info = {}
19
-
20
- def start_event_loop (self , timeout = 0 ):
21
- self .call_info ["start_event_loop" ] = {"timeout" : timeout }
22
-
23
-
24
15
class TestManger (FigureManagerBase ):
25
16
_active_managers = None
26
17
@@ -35,6 +26,17 @@ def destroy(self):
35
26
self .call_info ["destroy" ] = {}
36
27
37
28
29
+ class TestCanvas (FigureCanvasBase ):
30
+ manager_class = TestManger
31
+
32
+ def __init__ (self , * args , ** kwargs ):
33
+ super ().__init__ (* args , ** kwargs )
34
+ self .call_info = {}
35
+
36
+ def start_event_loop (self , timeout = 0 ):
37
+ self .call_info ["start_event_loop" ] = {"timeout" : timeout }
38
+
39
+
38
40
class TestShow (ShowBase ):
39
41
def mainloop (self ):
40
42
...
You can’t perform that action at this time.
0 commit comments