Hi,
I wanna use .button instate pressed. But there are errors.
Here is my code:
proc displayAmtFn {} {
if {.f.b1 instate pressed == 1} {
set ::finalamt 1}
elseif {.f.b2 instate pressed == 1} {
set ::finalamt 2}
set ::finalamt ""
}
b1 and b2 are my buttons. is my syntax wrong?
my errors...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.