Hi, I just checked in a change I planned to do since forever (and that took 6 lines of code...) that allows binding an event to a method instead to a subroutine/code reference. As an example
EVT_BUTTON( $self, $button, 'do_foo' );
will try to call do_foo as a method; it is more or less
equivalent to
EVT_BUTTON( $self, $button, sub { $_[0]->do_foo( $_[1] ) } );
Regards,
Mattia
