Re: [R] Set colour in tcl variable

2010-11-19 Thread Phil Spector
Immanuel - I don't believe you can associate a color with a TclVar, but you can use tkconfigure to change the color of a label. Does this little program help? library(tcltk) base = tktoplevel() lab = tklabel(base,text='correct',foreground='green') tkpack(lab) red = function(...)tkconfigure(lab

[R] Set colour in tcl variable

2010-11-19 Thread Immanuel Seeger
Hello all, using package tcltk this is my problem: I want to set a colour of a tclVar(). I have a tklabel (fixed in position) which should display two variables occasionally. If a constraint is fulfilled, the tklabel should display correct<-tclVar('correct') in green, otherwise it should di