in reply to Re^2: Passing arguments to event handlers in WxPerl
in thread Passing arguments to event handlers in WxPerl
You could also check the reference type of $self to see what you are getting.
If $self prints out to be a WxWidget Combobox, your code should work. But if $self turns out to be the package you are holding your code in, MyFrame, a WxWidget frame, then you will need to find a way of clearly identifying the Combobox.sub Combobox1action { my( $self, $event ) = @_; print $self, "\n"; $self->SetTitle( 'Combo box selected' ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Passing arguments to event handlers in WxPerl
by pwn01 (Initiate) on Sep 19, 2014 at 14:04 UTC |