gwindow {gWidgets} | R Documentation |
Widgets are packed inside containers which may in turn be packed inside other containers. The base container is known as a window. Only one container may be packed inside a window.
gwindow(title = "Window", visible = TRUE, name=title, ..., toolkit = guiToolkit())
title |
Title of window |
visible |
If TRUE window is drawn when
constructed. Otherwise, window can be drawn latter using visible<- . |
name |
Name for registry of windows |
... |
Not used |
toolkit |
Which GUI toolkit to use |
A base window can also be created using the argument
container=TRUE
when constructing a widget.
The svalue
method refers to the window title. Use
svalue<-
to change the title.
The add
method is used to add a widget or container to the
base window. Only one may be added, so usually it would be another
container.
The dispose
method destroys the window.
## Not run: win = gwindow("Window example", handler=function(h,...) print("See ya")) add(win,gbutton("Cancel", handler = function(h,...) dispose(win))) ## End(Not run)