l = tk.Label(text="hello, world") ... print("the label is", l.cget("text")) #Outputs: the labels is hello, world