8000 Correct start_event_loop behavior · matplotlib/matplotlib@c53570d · GitHub
[go: up one dir, main page]

Skip to content

Commit c53570d

Browse files
Correct start_event_loop behavior
timeout is given in float seconds according to FigureCanvasBase, but tk needs int milliseconds
1 parent c94c5f9 commit c53570d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/_backend_tk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def flush_events(self):
384384
def start_event_loop(self, timeout=0):
385385
# docstring inherited
386386
if timeout > 0:
387-
self._master.after(timeout, self.stop_event_loop)
387+
self._master.after(int(1000*timeout), self.stop_event_loop)
388388
self._master.mainloop()
389389

390390
def stop_event_loop(self):

0 commit comments

Comments
 (0)
0