I am having trouble with using a key binding to change the value of a label or any parameter. This is my code:
from tkinter import* class MyGUI: def __ini
Use the config method to change the value of the label:
config
top = Tk() l = Label(top) l.pack() l.config(text = "Hello World", width = "50")