Re: Tkinter date entry with boxes

2020-04-17 Thread Souvik Dutta
You can use 12 if statements to check for the correctness of dates. For the year you would only be needed to check the type. To insert "/" you should return your own data type. That is make a class that returns a string of the format "dd/mm/yy" using parameters of date, month and year. As for not g

Tkinter date entry with boxes

2020-04-17 Thread annunci . pervendite
Hi, I'm creating a registration form and I found this script that I'd like to use to have my participants to input their birth date: import tkinter as tk class DateEntry(tk.Frame): def __init__(self, parent, **kwargs): years = kwargs.pop('years', (1900, )) super().__init