ToolTip
Create a tooltip for a given widget (inspired by https://stackoverflow.com/a/36221216) This is an INTERNALLY USED only class. Users should not refer to this class at all.
Parameter Descriptions
Name | Type | Default | Description |
---|---|---|---|
text | str or None | text for the tooltip. It can inslude . If None tip won't be shown | |
timeout | int | 400 | Time in milliseconds that mouse must remain still before tip is shown |
widget | widget type varies | The tkinter widget |
Class Properties
This class has no public properties
Class Methods
def enter
def hidetip
def leave
def remove
def schedule
def showtip
def unschedule
enter
Called by tkinter when mouse enters a widget
Parameter Descriptions
Name | Type | Default | Description |
---|---|---|---|
event | None | from tkinter. Has x,y coordinates of mouse |
hidetip
Destroy the tooltip window
leave
Called by tktiner when mouse exits a widget
Parameter Descriptions
Name | Type | Default | Description |
---|---|---|---|
event | None | from tkinter. Event info that's not used by function. |
remove
Removes a tooltip from a widget
schedule
Schedule a timer to time how long mouse is hovering
showtip
Creates a topoltip window with the tooltip text inside of it
unschedule
Cancel timer used to time mouse hover