@@ -3510,12 +3510,9 @@ class _Backend:
35103510 # For interactive backends, the `FigureManager` class must be overridden.
35113511 FigureManager = FigureManagerBase
35123512
3513- # The following methods must be left as None for non-interactive backends.
3514- # For interactive backends, `trigger_manager_draw` should be a function
3515- # taking a manager as argument and triggering a canvas draw, and `mainloop`
3516- # should be a function taking no argument and starting the backend main
3517- # loop.
3518- trigger_manager_draw = None
3513+ # For interactive backends, `mainloop` should be a function taking no
3514+ # argument and starting the backend main loop. It should be left as None
3515+ # for non-interactive backends.
35193516 mainloop = None
35203517
35213518 # The following methods will be automatically defined and exported, but
@@ -3539,10 +3536,10 @@ def new_figure_manager_given_figure(cls, num, figure):
35393536
35403537 @classmethod
35413538 def draw_if_interactive (cls ):
3542- if cls .trigger_manager_draw is not None and is_interactive ():
3539+ if cls .mainloop is not None and is_interactive ():
35433540 manager = Gcf .get_active ()
35443541 if manager :
3545- cls . trigger_manager_draw ( manager )
3542+ manager . canvas . draw_idle ( )
35463543
35473544 @classmethod
35483545 def show (cls , * , block = None ):
0 commit comments