You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a Textual TUI with lots of Timer objects (created using both set_timer, and set_interval), and it would be super helpful to me if, analogous to the Timer.pause() and Timer.resume() functions, there was another method for editing the Timer's timings,
e.g:
Timer_object.edit_timing(new_interval=x, new_repeat=y)
So that the same Timer object can be reused but with different timings.
I know I can achieve this stopping and starting new timers, but being able to edit existing ones would make things much simpler for use cases like my app where my app is open for days and I do lots of long-running Timer based async tasks and at times need to change the timings over the course of the day, sometimes in unpredictable ways.
Thank you for reading and for textual, it is like a bicycle for the junior python dev mind!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am building a Textual TUI with lots of Timer objects (created using both set_timer, and set_interval), and it would be super helpful to me if, analogous to the Timer.pause() and Timer.resume() functions, there was another method for editing the Timer's timings,
e.g:
Timer_object.edit_timing(new_interval=x, new_repeat=y)
So that the same Timer object can be reused but with different timings.
I know I can achieve this stopping and starting new timers, but being able to edit existing ones would make things much simpler for use cases like my app where my app is open for days and I do lots of long-running Timer based async tasks and at times need to change the timings over the course of the day, sometimes in unpredictable ways.
Thank you for reading and for textual, it is like a bicycle for the junior python dev mind!
Beta Was this translation helpful? Give feedback.
All reactions