jaredks / rumps

Ridiculously Uncomplicated macOS Python Statusbar apps
BSD 3-Clause "New" or "Revised" License
3.06k stars 177 forks source link

Timer no longer stops #176

Closed misternate closed 1 year ago

misternate commented 2 years ago

macOS Monterey; Python 3.9.9; rumps 0.3.0 and 0.40. I am unable to stop or update timer object. Sanity checked against the example_timers.py and came across the same issue, where the timer cannot be stopped nor updated.

jiayouzl commented 2 years ago

There is something wrong with this code, and I also met it.

daredoes commented 2 years ago

Are these intel or M1 Chips?

jaredks commented 1 year ago

So I don't remember my thought when I originally wrote that example script but it's misleading to say the least.

There are actually two timers, one that is created with @rumps.timer(1) and another that is created with rumps.Timer(a, 4). The controls in the menu are for the latter and they do work. You must start the timer before you can stop it or see an effect from changing the interval. All the while, the first timer is not effected by any of these manipulations. Once you click "Start timer", you can then click "All timers" and see that there are two separate ones. It looks like this:

[<Timer: [callback: 'a'; interval: 1; status: ON]>, <Timer: [callback: 'a'; interval: 4; status: ON]>]