Tool Tips

ToolTip

class tooltips.ToolTip(widget, text='widget info', time: int = 4000)

Add a tooltip to any widget.:

entry = tk.Entry(root)
entry.grid()

# createst a tooltip
tk_tools.ToolTip(entry, 'enter a value between 1 and 10')
Parameters:
  • widget – the widget on which to hover
  • text – the text to display
  • time – the time to display the text, in milliseconds