Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get the text from a label in tkinter

l = tk.Label(text="hello, world")
...
print("the label is", l.cget("text"))
#Outputs: the labels is hello, world
 
PREVIOUS NEXT
Tagged: #text #label #tkinter
ADD COMMENT
Topic
Name
4+6 =