Label widget in tkinter by R4R Team


from tkinter import *


l=Label(win,text="This is First text on the screen"),y=100)

l=Label(win,text="This is Second text on the screen"),y=150)

l=Label(win,text="This is Third text on the screen"),y=200)



-In this program, firstly we create a window screen by the win=Tk() where Tk() is the constructor and win is the object variable choosen by the programmer.
- we create a label text by Label widget in the tkinter by Label(win,text="string")

-We place the Label or text at the screen by the,y)
-where x and y are the coordinate

Leave a Comment:
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!