File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 1212sys .modules ["matplotlib.pyplot" ] = None
1313
1414
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-
2415class TestManger (FigureManagerBase ):
2516 _active_managers = None
2617
@@ -35,6 +26,17 @@ def destroy(self):
3526 self .call_info ["destroy" ] = {}
3627
3728
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+
3840class TestShow (ShowBase ):
3941 def mainloop (self ):
4042 ...
You can’t perform that action at this time.
0 commit comments