Re: A canvas question
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: A canvas question

From: Bryan Oakley <oakley@bardo.clearlight.com>
Date: Fri Mar 17 2006 - 20:33:03 CET

Helmut Giese wrote:
> Hello out there,
> Tk's canvas is a marvellous widget, albeit a bit complex.
> Right now I'm struggling with the following: I have lots of text items
> on a canvas, and for some of them I want to change the font color and
> the background.
> Changing the font color is easy with the -fill option, but I haven't
> found a way to individually set the background color for a text item.
> I hope that I'm just overlooking something obvious.
> Any hints or ideas will be greatly appreciated.
> Best regards
> Helmut Giese

put a rectangle behind it, use the bbox of the text item for the
coordinates.

-- 
Bryan Oakley
http://www.tclscripting.com
Received on Sun Apr 30 02:38:25 2006