Re: Binding events to methods

2008-08-31 Thread Octavian Rasnita
Hi Mattia, What would be the advantage after this change? I often need to use EVT_BUTTON( $self, $button, sub { $_[0]-do_foo( $_[1] ) } ); ...just because I need to pass some more parameters to the do_foo subroutine/method. Would it be easier to pass parameters from now on somehow? If

Wx::Thread

2008-08-31 Thread Octavian Rasnita
Hi, I've found the following in Wx::Thread: use threads; use threads::shared; use Wx; my $DONE_EVENT : shared = Wx::NewEventType; my $worker = threads-create( \work ); # create frames, etc my $frame = Wx::Frame-new( ... ); EVT_COMMAND( $frame, -1,