So my app is a timer that counts down from X to zero, then resets to Y and then counts down to zero again, and then it becomes X again. So generally it reminds me to do something for a few seconds, every few minutes. I'd like to toast notifications to do the same.
So if the first timer runs out, I'd like it to say "it's time to do that thing for a few seconds". When the timer runs out, it should say "ok, times up, you can get back to doing whatever you were doing". For the sake of testing, I've just written "test1" and "test2" to see when each notification appears.
It seems like I'm only able to show the first notification because I'm not sure how to place the second one inside the code.
After 10 seconds, the next time that will appear will be of 5 seconds. When the 10 seconds timer is up, it shows the first notification test1. I want to add the test2 notification to the end of the second timer. I tried using itertools cycle and have each parameter just be a different toast notification, but as soon as I run the app, the notification appears, even though I'm not calling it yet.
Hello,
So my app is a timer that counts down from X to zero, then resets to Y and then counts down to zero again, and then it becomes X again. So generally it reminds me to do something for a few seconds, every few minutes. I'd like to toast notifications to do the same.
So if the first timer runs out, I'd like it to say "it's time to do that thing for a few seconds". When the timer runs out, it should say "ok, times up, you can get back to doing whatever you were doing". For the sake of testing, I've just written "test1" and "test2" to see when each notification appears.
It seems like I'm only able to show the first notification because I'm not sure how to place the second one inside the code.
Here is the code:
After 10 seconds, the next time that will appear will be of 5 seconds. When the 10 seconds timer is up, it shows the first notification
test1
. I want to add thetest2
notification to the end of the second timer. I tried usingitertools cycle
and have each parameter just be a different toast notification, but as soon as I run the app, the notification appears, even though I'm not calling it yet.Any help would be great :)