Calendar App Using Python
Python has a built in function calendar to work with date related tasks.
Calendar app using python. C calendar textcalendar calendar sunday tells the interpreter to create a text calendar. In this application user will have to fill the desired year and the calendar for that specific year will appear. Let see what we can do with python calendar.
Python provides tkinter to develop gui applications. Python has a built in module called calendar to work with calendars. We are going to learn about the calendar module in this article.
Step1 run the code. Python calendar module has a calendar class using which we can perform various calculations based on date month or year. You will learn to display the calendar of a given date in this example.
In this tutorial i will make a python calendar gui application using tkinter. The week in the calendar modules starts on monday and ends on sunday. The module calendar follows the gregorian calendar.
We begin with import calendar which will import all the classes of this module. If you have worked in linux use must be familiar with the cal command. Code line 1.
Start of the month will be sunday. Code line 3.