Hi,
I am new to ltk and am trying to create rectangles of different colors on a canvas. I would like to specify the value of the :fill option with a variable for example (itemconfigure canvas rectangle :fill :some-var-val) , but I am not sure how to do that; any help would be greatly appreciated. Also what are the acceptable formats for specifying a color? I know there are words like 'red' and 'black' and there is also hexadecimal #RRBBGG are there others? Thanks again.
-Irvin H.
Hi Irvin,
you can find all color names that are supported by Tk at: http://www.tcl.tk/man/tcl8.5/TkCmd/colors.htm In general, http://www.tcl.tk/man/tcl8.5/TkCmd/contents.htm is a good reference for Tk. I tried to keep Ltk close enough to Tk so that the Tk reference and many tutorials you can find on the net are still useful to Ltk users.
Peter