![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Perl Tk Button Disabledby haj (Priest) |
on Oct 24, 2022 at 20:29 UTC ( #11147648=note: print w/replies, xml ) | Need Help?? |
My question is simple. May I ask you to spend some effort to actually write down your question? In your code, sub three and sub four do exactly the same thing, but you seem to expect them to behave differently. If sub four does $Button1->configure(-state => "normal");, then button 1 will be enabled, period. Maybe you want to query the state of your sensor in sub four? Only, I don't see any sensor in your code.
In Section
Seekers of Perl Wisdom
|
|