What is true about the invocation of the cget () method?

What is true about the invocation of the cget () method?
A . It can be used to read widget attributes.
B. It has the same effect as the config () method.
C. It can be used to set new values to widget attributes.
D. It can be replaced with a dictionary-like access manner.

Answer: A

Explanation:

The cget() method in Python is used to read the configuration options of a widget in Tkinter. It retrieves the value of a specified configuration option for a Tkinter widget. Hence, option A is the correct answer.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments