Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getLightTW

Function to create a light weight widget showing a text string


Description

Given a text string and coordinations, this function creates a light weight tcltk widget with showing the text string passed.

Usage

getLightTW(x, y, text)

Arguments

x

x an interger for the horizontal position for the widget to appear

y

y an integer for the vertical position for the widget to appear

text

text a character string to be show in the widget

Details

When the function is invoked, a box containing the text will appear at the position specified by x, and y. Click the widget makes it disappear.

Value

This function does not return any value

Author(s)

Jianhua Zhang

Examples

if(interactive()){
    getLightTW(200, 200, "Click Me!")
}

tkWidgets

R based tk widgets

v1.68.0
Artistic-2.0
Authors
J. Zhang <jzhang@jimmy.harvard.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.