a primitive light class to manage calendar date in tkinter projects using datetime lib.
Provides a primitive class widget to manage calendar date in tkinter projects.
from calendarium import Calendarium
self.start_date = Calendarium(self,"Start Date")
f is a tkinter widget such as Frame,LabelFrame
- if use grid method
self.start_date.get_calendarium(f, row, col)
- If use pack method
self.start_date.get_calendarium(f,)
self.start_date.set_today()
if self.start_date.get_date(self)==False:return
Notice that in the spinbox widget we allowed only integers.
Calendarium use datetime.date to set/get date.