Skip to content

Commit be40c5c

Browse files
committed
wx: Only pass integers to event loop timer.
1 parent 62ffa6f commit be40c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_wx.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def start_event_loop(self, timeout=0):
568568
raise RuntimeError("Event loop already running")
569569
timer = wx.Timer(self, id=wx.ID_ANY)
570570
if timeout > 0:
571-
timer.Start(timeout * 1000, oneShot=True)
571+
timer.Start(int(timeout * 1000), oneShot=True)
572572
self.Bind(wx.EVT_TIMER, self.stop_event_loop, id=timer.GetId())
573573
# Event loop handler for start/stop event loop
574574
self._event_loop = wx.GUIEventLoop()

0 commit comments

Comments
 (0)