bluehost

Saturday, 22 May 2021

Making Calendar Using Python Language.

 I'm going to show you how to build a calendar using a python programming language. This is one of the short python projects and it will help you master your language and improve your coding skills.

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

React vs Angular; Front-End Web Development

Angular and React  are two of the most popular Javascript tools for front-end development. React is a Javascript created by Meta...