From 1718d434efae26de02754c6622c43f4dc9e624b9 Mon Sep 17 00:00:00 2001 From: jranke Date: Thu, 15 Mar 2012 15:54:14 +0000 Subject: Update kinfit and mkin to the latest version published on BerliOS. git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/kinfit/pkg/mkin@17 edb9625f-4e0d-4859-8d74-9fd3b1da38cb --- inst/GUI/gdf-test.R | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 inst/GUI/gdf-test.R (limited to 'inst/GUI/gdf-test.R') diff --git a/inst/GUI/gdf-test.R b/inst/GUI/gdf-test.R new file mode 100644 index 0000000..b1ec20a --- /dev/null +++ b/inst/GUI/gdf-test.R @@ -0,0 +1,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 -- cgit v1.2.1