One Sided Widget Padding - Python Tkinter GUI Tutorial #140

preview_player
Показать описание
In this video I'll show you how to only pad one side of a widget at a time instead of the default two sides.

Whenever we pad widgets, we use pady and padx, but by default those put padding on two sides of a widget. Pady puts padding above and below, padx puts padding to the left and right.

What if we only want to pad one side though? In this video I'll show you how to use a tuple to designate each side to pad.
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

Wow! I didn't know this. Thank you, you have saved my life!

Οὖτιςἐμοίγὄνομα-υη
Автор

This helped me out a lot, thank you so much

rohansundram
Автор

Oh my god. The secrets of the universe have been unveiled to me

zipur
Автор

Sir Your videos are really Helpful, sir plz make a video on ' how to print the emoji in the tkinter app'.

akankshaubale
Автор

i know you can change padding with .config(padx=1, pady=1)
but if I put .config(padx=(1, 0), pady=(1, 0)) it doesnt work because it only takes Str or float. Is there a way to change padding on one side with .config()? (or something else, i just want to change padding on one side later)

edit: Just realized that .config(padx=1, pady=1) doesnt actually change anything. But there is no error in the code, it just doesnt do anything. Why?

mindsetmatters
Автор

Sir, in html we use <hr> to add a horizontal line in the webpage... In the same way can we add a horizontal line passing through our gui window to neatly divide things???

cmputerprgrammer
Автор

can you do an example about the window minimizing, maximizing? when you click maximize the design change, and vice versa

ramehharmouch
Автор

sir when i am tryinf to add label to screen, it is moving the other label to a bit side and printing label...how can I rectify it...

aneeshmalapaka
Автор

Is there any way to make tkinter dynamic like kivy? Make a video about it

darshanpanchal
Автор

you look like that guy from breaking bad

iNobMx
Автор

Sir can we add slider on main window of tkinter as we see in web pages?

football_hours-nj
Автор

I think that tkinter is very simple, but if you want to do more advance thing you can't find good documentation.

TK-yutt
Автор

sir plz make a video on 'set the loading gif in the tkinter '.

akankshaubale
Автор

Sir Plz Make Next Video On Pop Up Font Box in tkinter

akankshaubale
Автор

Hello Sir, can you make a video on writing a python code for cricket match?

shrutimishra
visit shbcf.ru