Skip to content

Instantly share code, notes, and snippets.

@sebble
Created July 19, 2011 13:19
Show Gist options
  • Save sebble/1092289 to your computer and use it in GitHub Desktop.
Save sebble/1092289 to your computer and use it in GitHub Desktop.
attempting to return a value..
require("gWidgets")
require("cranvas")
tmp <- qdata(list('a'=c(1,2,3),'b'=c(4,5,6)))
gui <- function (data) {
obj <- gbutton("Hello world", container = gwindow(), handler = function(...){ data$b[2] <-9 })
}
gui(tmp)
## tmp will change once the button has been clicked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment