Let's say I have a gtable
in a gwindow
like this:
library(gWidgets)
options("guiToolkit"="RGtk2")
w <- gwindow()
dat <- data.frame(letter=letters, number=1:length(letters))
tab <- gtable(dat, container=w)
I'd like to be able to set the background color of individual rows arbitrarily, such as based on the value of a column of that row (e.g., all rows with vowels turned red).
Is this possible? I don't know a lot about Gtk at all, but I can learn if someone could point me in the right direction, such as, how can I access the row object in order to apply a Gtk function to it to change its color.
Thanks for your help!