How To Position Label Text The Right Way - Python Tkinter GUI Tutorial #133

preview_player
Показать описание
In this video I'll show you how to position label text inside of the widget. We'll look at justifying the text to the left, right, and center.

To move the position of text around inside of a widget, we use the justify tag inside the widget. Justify has three options; left, right, and center.

Center is the default for the widget, so if you want your text centered, you don't have to do anything.

In this video we'll also look at using line breaks \n to put text of different lines inside the widget.
Рекомендации по теме
Комментарии
Автор

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

Codemycom
Автор

Sir, pls never ever end this amazing tkinter playlist!!

shaunakn
Автор

Couldn’t have finished my capstone without this playlist. Thanks a lot man!

chiraagarunkumar
Автор

If i'm confused, didn't know or not sure. This guy is helping me! New sub

Rshers
Автор

I just hit for you the 100th Like! You deserver it! 💖

iceyvision
Автор

Really good tutorials sir. Really loving !

Balaji-hqjm
Автор

is there a way to make the writing in the text widgets from right to left while im writing?

tomh
Автор

Thank you so much. Can you add how to align the test to "top". By default it is centered. The justify doesn't have a "top" option

arielsigler
Автор

Thank you so much!! I was working on a project for school, and I couldn't figure out how to stop it from automatically centering. I kept trying to adjust side=tk.LEFT and anchor=tk.W thinking that was the problem. I never would have been able to figure this out on my own.

gillianwright
Автор

Hey, I made a small game with tkinter the sprite can move left and right but there are no boundaries and the sprite keeps coming off-screen do you have any ideas of how I could fix that?

DaDevKing
Автор

Good Video!! And if you love hiking then you can come to South West India(Western Ghats) after the Pandemic ends[Hope Fully It Does...] Though its very rainy throughout the year out there...

ameyanand
Автор

lol i was just using spaces = was pain in the ass but worked, time to fix my script up a bit ( whenever i think im done ill end up seeing one of these videos and have to go fix it again )

fitzysbaby
Автор

I've read that justify works for multiple lines and anchor works for single lines. However, anchor = 'w' isn't working for me. Neither is justify = 'left'

bigrevkev
Автор

Sir, how to draw things inside of canvas in tkinter? Like circles, rectangles, etc?

cmputerprgrammer
Автор

hey John, can you cover protocol method in one of your upcoming videos?

adityakukreti
Автор

I have no clue why, but anchor="e" worked for me and justify="right" did not. I don't even know the difference between those two😂 But it works fine for me, so I won't touch it ever again haha

silhuett
Автор

Hello sir I love you videos on programming in python Tkinter I have downloaded the one for tkinter courses for 5 hours and started following your excices. But I have a problem when i creat a label I when running code it will tell me that " the name label is not define" help me sir.

codinghub.
Автор

This playlist will not end

Just kidding

rishisid
Автор

Please create a video on "How to place label in canvas using relx and rely as a resposive method" Please

malikqasim
Автор

How can I align label with grid?? Please respond

mifzeena