#pythontkinter #tkinterLabel #pythonGui #pythoninhindi #pythontkintertutorial #pythontutorial #labeloptions #pythonlabel
This is the basic code to display the window by using Python Tkinter Programming
import tkinter as tk :-
text - adds the text
fg - foreground
bg - background
font - my_font1
relief - sunken , groove , raidge , raised , solid
borderwidth - 4 , 3
padx - x padding
pady - y padding
Adds the Text with text.
We can add background colour to this Label by using bg=’yellow’
l3 = tk.Label(my_w, text='Welcome', width=15,font=my_font1, fg='red',bg='yellow' )
Using the option relief
We can manage the border width of the label and also the style of the border by using relief option.
Relief option takes 6 values.
raised, sunken, ridge, solid, flat, groove. These values along with the borderwidth change the border look of the label.
Here is one example.
l1 = tk.Label(my_w, text='raised', width=10,font=my_font1,
fg='red',borderwidth=2, relief='raised' )
In tis Video, We covered Python Label Options with Python Tkinter in Gui window. That'll help you in creating Text with Label Options and Designing your text. Stay tuned for more videos on Pyhton Tkinter GUI Programming.
Watch Our Previous Video
Python Tkinter Gui Programming #1 🔥 : • Python Tkinter introduction in Hindi | pyt...
Python GUI Programming in Hindi #2 🔥 : • Python Tkinter first GUI program | python ...
Python GUI Programming in Hindi #3 🔥 : • Python Tkinter geometry, maxsize , minsize...
Python Gui Programming in Hindi #4 🔥 : • Python Tkinter Title and icon set | python...
Python Gui Programming in Hindi #5 🔥 : • Python Tkinter Label function | python GUI...
Follow On Social Media
►Website - https://www.softcrayons.com/
►Facebook - / softcrayons
►Instagram - / softcrayons
►Personal Instragram A/c- / indiancybereducation
On this page of the site you can watch the video online python Tkinter Label options | python Gui programming in Hindi #6 🔥 with a duration of hours minute second in good quality, which was uploaded by the user Softcrayons Tech Solution Pvt. Ltd. 17 February 2022, share the link with friends and acquaintances, this video has already been watched 583 times on youtube and it was liked by 6 viewers. Enjoy your viewing!