Python ToolTip class for arbitrary tkinter widget

Developers Apps class python tkinter tooltip

Source i (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
Become a Fan
5.0

Available as/for:release-stablesource-package
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

Ratings & Comments

0 Comments

Be the first to comment
Pling
0 Affiliates
Details
license MIT License
version
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Developers Apps:

Oo-mox
actionless
last update date: 8 years ago

Score 6.5

KEXI
jstaniek
last update date: 7 years ago

Score 6.5

BlackAdder
appy
last update date: 20 years ago

Score 5.0

Wing IDE Professional
sdeibel
last update date: 15 years ago

Score 5.0

Quanta Gold
appy
last update date: 20 years ago

Score 5.0

Codie
elgunvo
last update date: 15 years ago

Score 5.0