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 9595#
9696# This is also used if you do content translation via gettext catalogs.
9797# Usually you set "language" from the command line for these cases.
98- language = None
98+ # language = None
9999
100100# List of patterns, relative to source directory, that match files and
101101# directories to ignore when looking for source files.
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