Skip to content

a primitive light class to manage calendar date in tkinter projects

License

Notifications You must be signed in to change notification settings

1966bc/Calendarium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages