tooltip {widgetTools} | R Documentation |
A tcltk widget to mimic a tooltip
Description
Current tcltk library does not support tooltip unless an extension is included. The function tooltip is implemented as an alternative.
Usage
tooltip(text, targetWidget, width = 350)
Arguments
text |
|
targetWidget |
|
width |
|
Details
Given a target tcltk widget, a tooltip will be associated with the widget. The content of the tooltip will be shown when mouse moves over the widget and disappear when mouse moves out of the widget.
Value
This function returns invisible()
Author(s)
Jianhua Zhang
References
tcltk
See Also
Examples
## Not run:
## These cannot be run by examples() but should be OK when pasted
## into an interactive R session with the widgetTools package loaded
base <- tktoplevel()
but <- tkbutton(base, text = "Move Mouse Over Me")
tkpack(but)
tkbind(but, "<Enter>", expression(tooltip("Move mouse off me", but)))
# Destroy toplevel widget
# tkdestroy(base)
## End(Not run)
[Package widgetTools version 1.74.0 Index]