Python ToolTip class for arbitrary tkinter widget

Developers Apps class python tkinter tooltip

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on

5 .0

Tkinter (tcl/tk interface for Python) lacks tooltips for its widgets.
This is class which implements tooltips for arbitrary tkinter/ttk widgets.
Just add extra tooltip attribute to the instance of a widget as follows:

mywidget = some tkinter widget
mywidget.tooltip = ToolTip(mywidget, 'Some text')

ToolTip constructor can take extra arguments for delay in ms before tooltip is shown and/or tooltip text wrap length in pixels and/or timeout in ms before tooltip is automatically hidden. For example:

mywidget.tooltip = ToolTip(mywidget, 'Some text', delay=500, wrap=200, timeout=2000)

Default delay is 2000 ms, default wrap length is 200 pixels and default timeout is 4000 ms. Turn off timeout by passing 0 as timeout value.

This code is based on ideas from
Be the first to comment
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
0 Affiliates
MIT License
updated Aug 29 2019
added Aug 29 2019
downloads 24h
mediaviews 24h 0
pageviews 24h 8