set label text to variable tkinter code example
Example: tkinter label textvariable example
var = StringVar()
var.set('hello')
l = Label(root, textvariable = var)
l.pack()
var = StringVar()
var.set('hello')
l = Label(root, textvariable = var)
l.pack()