Timer (stopwatch and countdown) widgets for tkinter
tktimer is a set of tkinter widgets including a Stopwatch widget and a Countdown widget.
$ pip install tktimer
The timers have two methods:
You can find example programs in
||set the parent widget.|
||set text before timer value.||
||set text after timer value.||
||set the unit (available:
||set starting point (in seconds). specific to
||set updating time every X milliseconds.||
||set counting precision (number of digits after the decimal point).||
||set time offset (in seconds). specific to
How can I continue the timer after restarting my app?
You can get the elapsed time (in seconds) with
timer.value.get() on exit and set
offset later on, which will make the timer start counting from
beginning instead of
I'm not happy with how my timer looks like. Can I change its appearance?
Yes, timers are ultimately just tkinter labels which means you can do anything you would to an ordinary
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.