Re: Activate/Deactivate checkbutton by program
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: Activate/Deactivate checkbutton by program

From: Schelte Bron <nospam@wanadoo.nl>
Date: Thu Jun 30 2005 - 13:03:04 CEST

purzel30@web.de wrote:
> Can anybody tell me, how it is possible to activate or deactivate a Tk
> checkbutton by program. I cannot find any switch about that.
>
> My example:
>
> set e [checkbutton $f.r1 -justify left -text "Test"]
> pack $e -padx 5 -pady 3 -anchor sw
>
Perhaps you are looking for:
 $e select
and:
 $e deselect

Schelte.

-- 
set Reply-To [string map {nospam schelte} $header(From)]
Received on Thu Sep 29 14:24:01 2005