![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re^3: Perl Tk Button Disabledby GrandFather (Saint) |
on Oct 25, 2022 at 00:36 UTC ( #11147662=note: print w/replies, xml ) | Need Help?? |
So you should now have all almost the pieces you need to work out how to manage not changing button color in chg_btn when it ought not be changed. The missing part is passing the current sensor state into chg_btn in some fashion. Where you set up button call backs you can:
and something similar wherever you set up the sensor handling callback/sub. You can then
and in your button handler you can
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
In Section
Seekers of Perl Wisdom
|
|