diff --git a/lib/matplotlib/blocking_input.py b/lib/matplotlib/blocking_input.py index 4dc50f47eb68..72c2e4d967a8 100644 --- a/lib/matplotlib/blocking_input.py +++ b/lib/matplotlib/blocking_input.py @@ -101,7 +101,7 @@ def __call__(self, n=1, timeout=30): self.events = [] self.callbacks = [] - if hasattr(self.fig, "manager"): + if hasattr(self.fig.canvas, "manager"): # Ensure that the figure is shown, if we are managing it. self.fig.show()