Vidyalelo
Python · Q35

GUI Programming with Python

Programming · Python · question 35

Q35

How do you create a tooltip for a widget using the Label widget in Tkinter?

A.
Label(text="Tooltip text")
B.
TooltipLabel(text="Tooltip text")
C.
Label(tooltip="Tooltip text")
D.
Label(widget, text="Tooltip text")
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
You can create a tooltip for a widget using the Label(widget, text="Tooltip text") syntax in Tkinter.