+ 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
3 Answers
+ 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
0
helpme
5th Aug 2024, 7:56 AM
Yuchen
Yuchen - avatar
0
ok
5th Aug 2024, 7:56 AM
Yuchen
Yuchen - avatar