Codes.
We are going to start by importing some important libraries which we are going to work with. In this project, we are going to import Tkinter and calendar as our working libraries.
Then, we are going to create a 2021 Calendar. In your practice, try to use any year and see If you will get the exact dates.
The root. geometry can be of any scale; you can use 400x500, 600x700, or any other scale of your choice.
In label1 you can change the background to any other color like red, yellow, black. You can also use any font of your choice but in l2, the font Consolas 10 bold cannot be adjusted. If you try to adjust, the calendar will not align vertically, and therefore it will look disorganized.
Padx means how far the calendar will go at x-axes.
If you want to produce a small calendar, you can try and use a scale of less than 20 and vice verses.
No comments:
Post a Comment