Description Usage Arguments Details Value Author(s) References See Also Examples
Current tcltk library does not support tooltip unless an extension is included. The function tooltip is implemented as an alternative.
1 |
text |
|
targetWidget |
|
width |
|
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.
This function returns invisible()
Jianhua Zhang
tcltk
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.