Re: radiobutton / checkbutton text in multiple colors
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: radiobutton / checkbutton text in multiple colors

From: Donald Arseneau <asnd@triumf.ca>
Date: Sun Jul 31 2005 - 13:03:44 CEST

schelli@imb-jena.de writes:

> I would like to create text in different colors within the text field
> of a radiobutton (or analogously a button, checkbutton or hypertext) :

text $w -relief raised -bd 2

> $w tag configure color2 -foreground red
> $w insert end "Text in color 2" color2

bind $w <1> { $w configure -relief sunken; update;
    action
    after 30 $w configure -relief raised}

or something like that.

-- 
Donald Arseneau                          asnd@triumf.ca
Received on Thu Sep 29 14:28:06 2005