ginput: input dialog.

Description Usage Arguments Value Examples

View source: R/gdialogs.R

Description

Used for getting a text string to pass to a handler. Unlike other gWidgets implementations, this call does not block the R process, so any response to the user must be done through the handler.

Usage

1
2
ginput(message, text = "", title = "Input", icon = NULL, parent = NULL,
  handler = NULL, action = NULL, ...)

Arguments

message

message

text

initial text for the widget

title

title for dialog's window

icon

icon ignored here

parent

parent container (main window instance)

handler

Called if yes is selected, the component input of the first argument holds the user-supplied string.

action

passed to any handler

...

ignored

Value

return value ignored, use handler for response

Examples

1
2
3
4
5
6
w <- gwindow()
gbutton("click me for a message", cont=w, handler=function(h,...) {
  ginput("What is your name?", parent=w, handler=function(h,...) {
    galert(paste("Hello", h$input), parent=w)
  })
})

jverzani/gWidgetsWWW2 documentation built on Feb. 9, 2020, 5:18 p.m.