Python 3 Tkinter Data Entry Widget to Display User Data in Colorful Table GUI Desktop App
73 views
Jun 3, 2025
Get the full source code of application here: https://codingshiksha.com/python/python-3-tkinter-data-entry-widget-to-display-user-data-in-colorful-table-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 how to
0:04
display the tabular or a table inside
0:08
your tricker desktop application So
0:11
there will be a simple widget that you
0:13
can use to display this uh tabular
0:16
structure If any sort of table that you
0:19
want to display inside your application
0:21
you can display like this I will show
0:23
you there is a widget inside trick enter
0:26
that you can directly embed the tabular
0:29
structure All the source code is given
0:31
in the description of the video So now
0:35
let me show you the
0:37
widget So first of all you need to
0:40
import everything from the tweer package
0:43
like this and then we define your table
0:47
Whatever table that you want to display
0:49
we display this like this
0:59
We initialize this init function
1:01
and inside
1:04
this we define the
1:07
tabular
1:10
data So we define this inner loop to
1:14
loop through all the columns
1:21
So we use this entry widget which is
1:24
there inside trick
1:27
inter to actually display the table And
1:31
here we can
1:34
even control all the properties which is
1:37
the foreground
1:39
color Let me set this
1:43
to blue color And then you can even set
1:46
the font as well the size the bold as
1:53
everything So we can set the table in a
1:55
grid-like structure like
2:02
this Then we have this insert method
2:26
So that's all that is there Then we can
2:28
define this actual data that you want to
2:31
display After you define your class of
2:34
table we can define some
2:39
data So we basically have all this data
2:42
present
2:45
Then we simply initialize total
2:50
rows which
2:58
is and the total columns
3:11
After that we initialize the
3:16
window and we call this table class that
3:19
we
3:21
defined and
3:24
just so this completes the application
3:27
If you see it is saying selfroot invalid
3:30
syntax Let me just see
3:38
self sorry this is comma not dot
3:42
self.root
3:55
truth There was a typo mistake You can
3:57
basically find out the full source code
3:59
The link is given in the
4:03
description So it looks something like
4:05
this You'll see You can customize it by
4:08
changing this foreground color to yellow
4:14
So you will see you can change the text
4:17
color as well everything you can
4:18
customize
4:19
it So in this easy way you can display
4:22
tabular data inside your Twinter
4:26
application So thank you very much for
4:28
watching this video Also check out my
4:31
website freemediattoolsh.com
4:35
uh which contains thousands of tools