DateEntry of Ttkbootstrap to select date from a Calendar with options and parameters #13

preview_player
Показать описание
00:00 Script demo showing Calendar and button to read and display date
01:04 Layout and placing the widgets on window
02:40 Adding Date formats to selected date of the Calendar
03:33 Firstweekday selection of first day of the week in the calendar
04:50 Default date or default selected date
06:34 Adding a button to the window
07:24 Adding Label to the window
08:24 Adding the function my_upd() to update the Label text
10:11 Adding all ttkbootstrap styles to DateEntry

Download the source code from here.

Date Formats

#DateEntry #DateFormat #DefaultDate #Weekday #startDate #selectedDate #Tkinter #plus2net
Рекомендации по теме
Комментарии
Автор

I have almost de same question of @jacobacoob3.
I have a module with tkinter and sqlite3 and these lines are part af this module:
import ttkbootstrap as tb
lbl3 = Label(frame1, text="Fecha: ")
lbl3.place(x=5, y=110)
e3 = tb.DateEntry(frame1, width=38, justify='left', textvariable=fcuota, date_pattern="dd/mm/y")
e3.place(x=5, y=130, width=250, height=20)
I want to use boootstrap and I have the following: tkinter.TclError: unknown option "-textvariable"'
Could You help Me with the solution?
Best Regards

victorjauregui
Автор

How can I get the date that the user selected, like date_entry.get(), but it tkes me to : "AttributeError: 'DateEntry' object has no attribute 'get'"??

lauraA_.n
Автор

Thank you for your helpful video! I have a question! 
Is it possible to automatically update the ttk.Label when a DateEntry click event occurs (without using the button)?
I see other people using the de.bind("<<DateEntrySelected>>", my_upd), but this doesnt seem to work for ttkBootstrap. I assume the DateEntry event maybe doesn't use the DateEntrySelected like regular Tkinter. I read somewhere that ttkBootstrap uses a mix of Button and Combobox, but i'm not sure how to bind the click event. Please help.

jacobjacob
Автор

Dear sir, i encountered: '"ModuleNotFoundError: No module named 'ttkbootstrap'". How can i resolve this problem? Please help.

parralelife
Автор

sir i am getting this error AttributeError: 'DateEntry' object has no attribute '_calendar'

smosavalery
Автор

i declared a variable to get entry from users so when i stored this declared variable into a textvariable i am getting error unknow option textriable

smosavalery
Автор

can i make this dateentry state to readonly?

Life-is-