No such thing as a small change | |
PerlMonks |
Re: TkZinc Can you Bind an array of buttons.by Anonymous Monk |
on Oct 08, 2015 at 07:27 UTC ( [id://1144144]=note: print w/replies, xml ) | Need Help?? |
Sure, you could simply loop FunkyWonky( $_) for @array; where FunkyWonky sets up the onmouseover/onmouseout enter/leaver color changers See also commentary by zentara in GUIs in Tk.:Zinc; a perl module experiment After that see "testGraphics.pl" in zinc-demos (its "7. A set of demos based on Graphics.pm module (really better with openGL)." ... hippodrome tab)
So tag each button with "pooshboton", then bind on pushboton + enter / leave ... see testGraphics.pl sub pushButton for details
In Section
Seekers of Perl Wisdom
|
|