ginput {gWidgetsWWW2} | R Documentation |
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.
ginput(message, text = "", title = "Input", icon = NULL, parent = NULL, handler = NULL, action = NULL, ...)
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
|
action |
passed to any handler |
... |
ignored |
return value ignored, use handler for response
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) }) })