Python 3 Tkinter Project to Display Google Calendar API Widget of Any Date & Time GUI Desktop App
498 views
Jun 3, 2025
Get the full source code of application here: https://codingshiksha.com/python/python-3-tkinter-project-to-display-google-calendar-api-widget-of-any-date-time-gui-desktop-app/
View Video Transcript
0:00
uh hello guys welcome to this video so
0:02
in this video I will show you uh how to
0:04
display Google calendar
0:07
API uh through Google calendar API you
0:10
can display calendar of any sort of year
0:13
inside your Python application so this
0:16
is a graphical user kind of an
0:18
application let me execute this and as
0:20
soon as you execute the application the
0:22
interface will look something like this
0:25
so here you can have the ability to
0:28
actually show the calendar of any sort
0:31
of year so we have this input field
0:33
right here where we allow the user to
0:35
simply select which year they want to
0:37
display the calendar so inside this
0:40
input field we can uh enter any sort of
0:43
year let's suppose I say 1997 so in this
0:48
year I want to display the calendar so
0:50
we have the two buttons here show
0:52
calendar so as soon as I click the show
0:54
calendar button it will open a new
0:57
window and here you will see the
0:59
calendar of that specific year 1997 so
1:02
you display you will see all the months
1:05
are January February March April May so
1:09
this application is really useful
1:11
because uh sometimes you need to
1:14
uh get specific dates so through this
1:19
application you can input the year and
1:21
then it will display the calendar of
1:22
that specific year so let's suppose I
1:25
change this and change this to
1:28
205 again click show calendar you will
1:31
see it will display the calendar of the
1:34
specific
1:36
year you can even now see the future
1:39
calendar as well so if I say
1:43
2035 so now it will show the future
1:46
calendar as well so this is a very
1:48
useful application and we are making
1:51
using u uh just use the Google calendar
1:55
API for making this which is a very
1:57
popular
1:58
API if you just try it on Google so this
2:02
Google calendar API we are embedding
2:04
directly this uh API inside the Twin
2:08
application so for this you don't need
2:11
the API key so there is a free module
2:14
that I will show you so first of all you
2:17
just need to install this specific
2:21
module here which is called as
2:24
calendar so
2:27
this calendar module you just need to
2:29
install
2:32
so so the command is simple you
2:41
simply pip install calendar so this is
2:44
actually the module that we are using
2:46
here this is actually a free module free
2:49
py python module so simply install this
2:52
and after that uh we can essentially use
2:57
this i think the specific name is
3:00
different let me ask chat GPT which what
3:03
is the name of this module so what is
3:05
the name of
3:12
the so there is a specific name here
3:14
which
3:19
uh so uh so this is actually calendar
3:22
module so simply pip install calendar so
3:24
this will install this so after
3:28
installing it I have given all the
3:29
source code in the description of the
3:31
video so we
3:33
simply import everything from twin and
3:36
then from tinter ttk you need to import
3:40
everything
3:48
so we import the calendar module here
3:51
like
3:54
this and then we basically make a
3:57
function here which will show the
3:59
calendar to
4:08
us so here we set the properties here
4:11
about the window here what is the
4:13
background color that you want to set so
4:16
you can set this any color here let me
4:18
set it white
4:20
here and then you can set the title of
4:23
the window the size of the window so
4:26
using the title method and the geometry
4:29
so it says width and the
4:32
height and then we will be having
4:35
a input field where we will be fetching
4:39
the
4:41
value of the year field so we will
4:44
convert this into integer and then we
4:47
will basically fetch the calendar based
4:50
upon the year given using this calendar
4:54
method and we pass the
5:07
year so we have this
5:14
year label here where we allow the user
5:16
to enter the year and
5:22
then so I've given all the source code
5:25
in the description of the video so you
5:28
can go to my website and just copy paste
5:30
all the source
5:40
code so here we are just initializing
5:43
the window over here you can see we are
5:45
setting the background color title
5:46
geometry and then we are adding a label
5:48
on the screen where we allow the user to
5:51
simply uh enter the which year that they
5:54
want to get the calendar and then we are
5:56
adding
6:01
it so it looks something like this so
6:05
can see that so the full source code
6:08
guys is given in the description thank
6:10
you very much for watching this video
6:12
and uh also check out my website
6:15
freemediatoolsh.com
6:17
uh which contains thousands of tools
#Holidays & Seasonal Events
#Programming
#Scripting Languages
#Software
#Time & Calendars