Mark Heckmann <mark.heckmann <at> gmx.de> writes: > > Hi all, > > 1) is there a way to change the color or font size/type in gbuttons > and other widgets etc.? > Here: > http://www.mail-archive.com/r-sig-gui <at> stat.math.ethz.ch/msg00422.html > it is pointed out that font size can be changed globally by editing > the ~/.gtkrc-2.0 file. > > Is there a way to do it dynamically, like > > button <- gbutton("Hello world", container=group_2, font.attr=list > (color="red",style="bold")) > > which does not work? >
Dear Mark, I fixed the font<- method to work with buttons: font(button) <- c(color="red", style="bold") should work after the button is constructed. The new version was just uploaded to CRAN. I don't really support themes within gWidgets, but this may not be the most standard way of indicating to the user some value has changed. Hope that helps, John > What I would like is my buttons to change color according to some value. > > 2) If not in gwidgets, is it possible via the RGtk2 package (have not > used it yet directly)? > > Thanks in advance! > Mark > > ––––––––––––––––––––––––––––––––––––––– > Mark Heckmann > Dipl. Wirt.-Ing. cand. Psych. > Vorstraße 93 B01 > 28359 Bremen > Blog: www.markheckmann.de > R-Blog: http://ryouready.wordpress.com > _______________________________________________ R-SIG-GUI mailing list R-SIG-GUI@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-gui