What is the use of configure() in tkinter python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the use of configure() in tkinter python?

Help me to solve this problem

31st Jan 2021, 1:19 PM
Ram bahadur bhadoria
Ram bahadur bhadoria - avatar
1 Answer
+ 3
config or configure is used to access an object's attributes after its initialisation. For example, here, you define l = Label(root, bg="ivory", fg="darkgreen") but then you want to set its text attribute, so you use config: l.config(text="Correct answer!")
1st Feb 2021, 4:41 AM
Queen👽
Queen👽 - avatar