1966bc / Calendarium

a primitive light class to manage calendar date in tkinter projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calendarium

a primitive light class to manage calendar date in tkinter projects using datetime lib.

alt tag

Provides a primitive class widget to manage calendar date in tkinter projects.

How import:

from calendarium import Calendarium

How instantiate in your frame:

self.start_date = Calendarium(self,"Start Date")

How pack:

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,)

How set today date:

self.start_date.set_today()

How check if a date is right formated:

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.

Calendarium it's primitive but It's working and it's light.

About

a primitive light class to manage calendar date in tkinter projects

License:MIT License


Languages

Language:Python 100.0%