in reply to Need a callback for Tk radio button deselect

Does this give you ideas?
#!/usr/bin/perl use Tk; use strict; my $val; my $mw = new MainWindow; $mw->Checkbutton(onvalue => "I am selected", offvalue => "I am deselected", variable => \$val) ->pack; $mw->Entry(textvariable => \$val)->pack; MainLoop;

Replies are listed 'Best First'.
Re: Re: Need a callback for Tk radio button deselect
by rinceWind (Monsignor) on Sep 30, 2003 at 21:10 UTC
    zentara, I'm not sure your example helps.

    What I am after is a callback for a radiobutton. My radiobutton widget is detecting changes of value of the common -variable, and visibly changes its appearance. It looks like you are doing something equivalent by typing into the entry box. However, no callback results; this is what I am really after, in order to do some processing when the widget is deselected.

    --
    I'm Not Just Another Perl Hacker