Why isn't set_interval working? #5070
-
My code is here: https://github.com/djotaku/sdpmpd/blob/40694248ff4b43200a875afe5dd98ef5e8eadba0/sdpmpd/tui.py Specifically the class that starts on line 36. A few things:
I commented everything out in "add next song" so that I figured I'd see 60 print statements per second. Instead I just see it once once on mount. Line 61 shows that callback = None, which seems weird to me. What am I doing wrong here? Looking at the stopwatch example, this seems like it should work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Remove the () from the callback. You want to pass in the function, without calling it. |
Beta Was this translation helpful? Give feedback.
Remove the () from the callback. You want to pass in the function, without calling it.