guiTextInput {plotAndPlayGTK} | R Documentation |
A text field in a dialog box.
guiTextInput(text = "", title = "Text Input", prompt = "", oneLiner = F, accepts.tab = T, wrap.mode = c("none", "char", "word", "word_char"), size = c(600, 320), width.chars = -1, focus.on.ok = !oneLiner)
text |
initial text to put in the text box. |
title |
the window title. For editAsText the default is based on x . |
prompt |
a prompt to display (as a gtkLabel above the text box. |
oneLiner |
whether to use a single-line gtkEntry rather than a gtkTextView . |
accepts.tab |
whether a tab can be typed in the text box; otherwise it changes the focus. |
wrap.mode |
type of text wrapping, from GtkWrapMode . |
size |
default window size as c(x, y) pixels, used when oneLiner=F . |
width.chars |
width of the entry in characters, used when oneLiner=T . |
focus.on.ok |
whether the initial keyboard focus is on the OK button. Otherwise it will be in the text box. |
guiTextInput
returns the text from the text box.
Felix Andrews felix@nfrac.org
## Not run: guiTextInput() guiTextInput(oneLiner=T) ## End(Not run)