inst/tests/ex-glabel.R

w <- gwindow("glabel example", visible=FALSE)

widget <- glabel("test label", cont = w)

# svalue
print(svalue(widget))

# svalue<-
svalue(widget) <- "new label"

# font
font(widget) <- c("weight"="bold", "color"="red")

visible(w) <- TRUE

Try the gWidgets package in your browser

Any scripts or data that you put into this service are public.

gWidgets documentation built on May 2, 2019, 6:22 p.m.