Answers for "how to use label in tkinter"

1

python tkinter getting labels

from tkinter import *

root = Tk()

l = Label(root, text='Hello World!!') #Creates the label with text hello world

l.pack() #Makes it visible to us
Posted by: Guest on January-26-2021
0

tkinter label

from Tkinter import *

root = Tk()
var = StringVar()
label = Label( root, textvariable=var, relief=RAISED )

var.set("Hey!? How are you doing?")
label.pack()
root.mainloop()
Posted by: Guest on August-31-2020

Code answers related to "how to use label in tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language