Skip to content

Commit 317a5eb

Browse files
committed
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.
1 parent 7d0cb13 commit 317a5eb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/matplotlib/backends/backend_wx.py

-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ def _timer_set_interval(self):
8787
if self._timer.IsRunning():
8888
self._timer_start() # Restart with new interval.
8989

90-
def _timer_set_single_shot(self):
91-
self._timer.Start()
92-
9390

9491
class RendererWx(RendererBase):
9592
"""

0 commit comments

Comments
 (0)