While I'm not "up" on the Perl Tk bindings. I'm wondering if there was already a Module, or application. That already implements what you're attempting to achieve. If so, maybe examining the source would provide the clues you need. Or at least a start.
HTH
--Chris
EDIT: looks like choroba was providing an example while I was writing this.Hey. I'm not completely useless. I can be used as a bad example.
In reply to Re: Changing the button function
by taint
in thread Changing the button function
by kkma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |