Brethren,
Related to my earlier ruminations concerning a Perl/Tk music player (see Tk UI behavioral oddities (solved problem)), I find myself needing to dynamically change the Play/Pause button in response to user actions. Basically, the button image should switch from a Play icon to a Pause icon when play is started, and switch back to a Play icon when playback is stopped. (When paused, the icon should not change, but the button's action should toggle between pause and unpause; but that is, of course, a simple matter to handle within the callback function.)
I cannot, however, find any documented way to do this, short of destroying and recreating the button. Is there in fact any such means?
In reply to Dynamically altering Tk buttons by Llew_Llaw_Gyffes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |