Changeset 4181


Ignore:
Timestamp:
04/28/09 08:11:44 (3 years ago)
Author:
jquelin
Message:

binding event to ok dialog button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-SpellCheck/lib/Padre/Plugin/SpellCheck/Preferences.pm

    r4158 r4181  
    4646 
    4747 
     48# -- event handler 
     49 
     50sub _on_butok_clicked { 
     51    my ($self) = @_; 
     52    $self->Destroy; 
     53} 
     54 
     55 
    4856# -- private methods 
    4957 
     
    8492    my $butsizer = $self->CreateStdDialogButtonSizer(Wx::wxOK|Wx::wxCANCEL); 
    8593    $sizer->Add($butsizer, 0, Wx::wxEXPAND|Wx::wxCENTER, 1 ); 
     94    Wx::Event::EVT_BUTTON( $self, Wx::wxID_OK,     \&_on_butok_clicked ); 
    8695} 
    8796 
Note: See TracChangeset for help on using the changeset viewer.