From aed5d611ebd330c7de558ea6d134c7c52ae83c72 Mon Sep 17 00:00:00 2001 From: Sahil kumar <900213327sahil@gmail.com> Date: Fri, 2 Oct 2020 10:18:32 +0530 Subject: [PATCH] created a new file created new file with a python program to make calendar, hope it makes look more better now --- python program to make calendar | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 python program to make calendar diff --git a/python program to make calendar b/python program to make calendar new file mode 100644 index 0000000..746a561 --- /dev/null +++ b/python program to make calendar @@ -0,0 +1,18 @@ +# importing tkinter +from tkinter import * +# importing calendar module +import calendar +# initializing tkinter +root = Tk() +# setting title of our Gui +root.title("My Own Gui Calendar") +# year for which we want the calendar to be shown on our Gui +year = 2020 +# storing 2020 year calendar data inside myCal +myCal = calendar.calendar(year) +# showing calendar data using label widget +cal_year = Label(root, text=myCal, font="Consolas 10 bold") +# packing the Label widget +cal_year.pack() +# running the program in ready state +root.mainloop()