From 317a5eba2dd8f95153c211582ddf286e26bcc49c Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 1 Oct 2020 03:19:05 -0400 Subject: [PATCH] Fix singleshot timers in wx. `TimerWx._timer_set_single_shot` currently tries to start the timer without interval or any other setting, which is not what this method is supposed to do; it should only modify settings on internal objects. Since single shot mode is fully handled in `TimerWx._timer_start`, this method is unnecessary. --- lib/matplotlib/backends/backend_wx.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/matplotlib/backends/backend_wx.py b/lib/matplotlib/backends/backend_wx.py index a031c6387a9e..046586b6e129 100644 --- a/lib/matplotlib/backends/backend_wx.py +++ b/lib/matplotlib/backends/backend_wx.py @@ -87,9 +87,6 @@ def _timer_set_interval(self): if self._timer.IsRunning(): self._timer_start() # Restart with new interval. - def _timer_set_single_shot(self): - self._timer.Start() - class RendererWx(RendererBase): """