PCPP-32-101 · Question #29
What is true about the unbind_all() method? (Choose two.)
The correct answer is A. It can be invoked from any widget C. It is parameterless. The unbind_all() method in Tkinter is used to remove all event bindings from a widget. It is a method of the widget object and can be called on any widget in the Tkinter application. Therefore, option A is the correct answer. Option B is incorrect because the method can be…
Question
What is true about the unbind_all() method? (Choose two.)
Options
- AIt can be invoked from any widget
- BIt can be invoked from the main window widget only
- CIt is parameterless
- DIt causes all the widgets to disappear
How the community answered
(60 responses)- A95% (57)
- B2% (1)
- D3% (2)
Explanation
The unbind_all() method in Tkinter is used to remove all event bindings from a widget. It is a method of the widget object and can be called on any widget in the Tkinter application. Therefore, option A is the correct answer. Option B is incorrect because the method can be called on any widget, not just the main window Option C is correct as unbind_all() does not take any parameters. Option D is incorrect because the method only removes event bindings and does not cause the widgets to disappear.
Topics
Community Discussion
No community discussion yet for this question.