aboutsummaryrefslogblamecommitdiff
path: root/inst/GUI/gdf-test.R
blob: b1ec20ae22fc399ee6a9b4e126908579946cc55f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                               
w <- gwindow("gdf test")
g <- ggroup(horizontal=FALSE, cont=w)
d <- gdf(data.frame(a=c(1.1, 2.2, 3.3), b= c("one", "two", "three"), stringsAsFactors=FALSE), 
  name = "Test for editing character columns", cont=g)
size(d) <- c(400,400)
gbutton("Change [1,2]", handler=function(h,...) {
  d[1,2] <- "test"
}, container=g)
gbutton("Value of [1,2]", handler=function(h,...) {
  galert(d[1,2], parent=d)
}, cont=g)
visible(w) <- TRUE

Contact - Imprint