How to change default time of tkTimePicker analog clock
I am using the Analog Picker from tkTimePicker. The default time (the time that it shows initially) is 12:59 AM. I want to be able to change the default time to what the user saved it previously.
My current code for showing the time picker is:
from tkinter import *
from tktimepicker import AnalogPicker, AnalogThemes, constants
def editTime():
editTimeWindow = Toplevel(window)
time_picker = AnalogPicker(editTimeWindow, type=constants.HOURS12)
time_picker.pack(expand=True, fill="both")
theme = AnalogThemes(time_picker)
theme.setNavyBlue()
editTimeWindow.mainloop()
editTime()
Is there a way to change the default time?
Comments
Post a Comment