tklist.modal: Modal select list dialog using TclTk

Description Usage Arguments Value Author(s) Examples

View source: R/tklist.modal.R

Description

tklist.modal generates a dialog box that prompts the user to select from a list of options. This script uses TclTk tools that should be operable on different operating systems.

Usage

1
2
tklist.modal(title, elements0, returnValOnCancel="ID_CANCEL",selectmode =
"single")

Arguments

title

Title for the list box.

elements0

Character vector of elements listing different choices

returnValOnCancel

Character string returned by the script if the dialog box is canceled

selectmode

Set to multiple to allow for multiple selections.

Value

A TclTk dialog box.

Author(s)

Lester L. Yuan

Examples

1
2
3
4
## Not run: 
tklist.modal("Select a color", c("red", "green", "blue"))

## End(Not run)

bio.infer documentation built on Sept. 2, 2020, 5:08 p.m.