Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ca19cd

Browse files
boolean check to int comparison
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent ab3c696 commit 5ca19cd

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
@@ -96,7 +96,7 @@ def _on_timer(self):
9696
# if _timer is None, this means that _timer_stop has been called; so
9797
# don't recreate the timer in that case.
9898
if not self._single and self._timer:
99-
if self._interval:
99+
if self._interval > 0:
100100
self._timer = self.parent.after(self._interval, self._on_timer)
101101
else:
102102
# Edge case: Tcl after 0 *prepends* events to the queue

0 commit comments

Comments
 (0)