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 opencode.net

0
Score 50.0%
Description:

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
https://www.daniweb.com/programming/software-development/code/484591/a-tooltip-class-for-tkinter
https://stackoverflow.com/questions/3221956/how-do-i-display-tooltips-in-tkinter/36221216#36221216
http://svn.effbot.org/public/stuff/sandbox/wcklib/wckToolTips.py
Be the first to comment
12345678910
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
MIT License
version
updated Aug 29 2019
added Aug 29 2019
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1