Re: [perl] Derived classes and events

Carsten Grohmann <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
Hi Johan,

Johan Vromans schrieb am 08.05.2016:
> The final solution was to change the generated code from
> 
> Wx::Event::EVT_BUTTON($self, $self->{button_1}->GetId, \&buttonpush);
> 
> to
> 
> Wx::Event::EVT_BUTTON($self, $self->{button_1}->GetId,
> $self->can('buttonpush'));

This change is implemented in in changeset 1937:36b746fcbd43
"Use dynamic lookups to call event handler in Perl". 

The change will be part of the next offical release.

Thank you for highlighting this issue,
Carsten


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.