- config() is a python Tkinter method that are used to change the property of the widget at run time(not at initialization of widget).
Syntax-
widgetobject.config(option=value)
-Here 'option' is may be text, color, font or anything that the property of the widget.
program-
from tkinter import *
#create a window screen
win=Tk()
win.geometry("400x350")
l=Label(win)
l.place(x=100,y=100)
l.config(text="This is the Text")
l.config(fg="white",bg="green")
l.config(font=('arial',23,'bold'))
#hold the screen
win.mainloop()