I can't run your code, but from the question, I will offer this. In most GUI's, the widget that sends the event, is the first item listed in the callback's subroutine's @_ arguments.
In reply to Re: Passing arguments to event handlers in WxPerl
by zentara
in thread Passing arguments to event handlers in WxPerl
by pwn01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |