Replies: 2 comments 6 replies
-
Hi! You should use the import ttkbootstrap as ttk
import datetime
root = ttk.Window()
some_date = datetime.datetime.fromisoformat("2023-11-11")
date_chooser = ttk.DateEntry(root, startdate=some_date)
date_chooser.pack()
root.mainloop() |
Beta Was this translation helpful? Give feedback.
6 replies
-
My workaround is to create a new instance of DateEntry with a startdate as option. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there.
I am trying to do something where I set the date in the entry field for the ttkbootstrap DateEntry. I tried using set_date() but I get this: "AttributeError: 'DateEntry' object has no attribute 'set_date'"
Looking on Stack Overflow, there was a post that hints at the issue. It seems that that ttkbootstrap DateEntry is not the same as the DateEntry for tkcalendar.DateEntry, so set_date() isn't going to work. I tried looking in the documentation and there is nothing that seems to explain or help with what I need to do.
How do I get it so I can set the date for my ttkbootstrap.DateEntry?
Any assistance is helpful. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions