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
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
2 matches
Mail list logo