This is a simple and fully customizable timepicker widgets made for tkinter. You can make use of three types of timepicker:
- clock timepicker
- old-spin timepicker
- modern-spin timepicker
quick example
import tkinter as tk
from tktimepicker import AnalogPicker, AnalogThemes
# note: you can also make use of mouse wheel or keyboard to scroll or enter the spin timepicker
root = tk.Tk()
time_picker = AnalogPicker(root)
time_picker.pack(expand=True, fill="both")
# theme = AnalogThemes(time_picker)
# theme.setDracula()
root.mainloop()
For more examples refer Examples, For documentation read Documentation
Clock time picker
Available themes:
Dracula
purple
Old-spin timepicker
Modern-spin timepicker
Note: you can also use mouse wheel to change the time when using modern timepicker, or you can also make use of keypress to change time if you hover over the timepicker.
Note: You can also have your own colors besides this. you can also make use of 24 hrs clock, read the documentation for more info.
Other libraries you might be interested in
-
tkvideoplayer - Plays video files in tkinter.
-
tkstylesheet - Helps you style your tkinter application using stylesheets.
-
PyCollision - Helps you draw hitboxes for 2d games.