powered by
gwindow(title = "Window", visible = TRUE, name=title, width = NULL, height= NULL, location=NULL, handler = NULL, action = NULL, ..., toolkit = guiToolkit())
container=TRUE
The svalue method refers to the window title. Use svalue<- to change the title.
svalue
svalue<-
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.
add
The dispose method destroys the window.
dispose
The size method sets the minimum size. Use the width and height arguments to set the default size when the window is constructed.
size
width
height
win = gwindow("Window example", handler=function(h,...) print("See ya")) add(win,gbutton("Cancel", handler = function(h,...) dispose(win)))
Run the code above in your browser using DataLab