balloon − provides popup tooltips (balloon help) for Tk widgets |
package require balloon balloon $widget ?options? |
−foreground −background −font −relief −borderwidth
See the ‘‘options’’ manual entry for details on the standard options.
Command-Line Name:−showdelay |
Database Name: |
showDelay |
|
Database Class: |
ShowDelay |
Specifies time of mouse inactivityin the widget in milliseconds, after which tooltip would be shown. Default is 500 ms. |
Command-Line Name:−dismissdelay |
Database Name: |
dismissDelay |
|
Database Class: |
DismissDelay |
Specifies time of inactivity after tooltip was shown, before it would be dismissed automatically. |
This package provides balloon tooltips for Tk widget. You invoke procedure balloon with name of widget and it’s all. User positiones mouse cursor over widget and after specified -showdelay small toplevel window with specified text would appear. At least one of options: -label, -text or -textvariable should be provided. Procedure balloon doesn’t return anything, and even doesn’t actually create widget. If -label option is specified, message would be placed into toplevel as label widget. Otherwise message widget is used. To disable tooltip set invoke balloon command again and specify -1 as -showdelay. |
All the behavoir of balloon help, excluding text can be controlled via option database. We use class Balloon for the balloon widget and it is always child of widget it describes. All unlisted options of label/message widget can be set via option database using *.Balloon.Message.option or *.Balloon.Label.option |
widget, balloon help, tooltip |