in reply to Re: Problem with wxPerl
in thread Problem with wxPerl

Thank you , How should I refer to the object correctly?

Replies are listed 'Best First'.
Re^3: Problem with wxPerl
by Anonymous Monk on Aug 27, 2010 at 03:31 UTC
    Heres how I would do it with wxTextEntryDialog
    sub add_alert { my ($self, $event) = @_; #~ my $md = MyDialog->new(my $frame_1); #~ $md->ShowModal(); my $dialog = Wx::TextEntryDialog->new( $self, "Enter some text", "Wx::TextEntryDialog sample", 9, # "I am a default value" ); if ( $dialog->ShowModal == Wx::wxID_OK() ) { unshift @numbers, $dialog->GetValue; $self->{text_ctrl_1}->SetLabel("The button @numbers"); } $dialog->Destroy; }
      Thank you sir exactly what I wanted.. AND I will read the article..
Re^3: Problem with wxPerl
by Anonymous Monk on Aug 27, 2010 at 03:36 UTC
Re^3: Problem with wxPerl
by Anonymous Monk on Aug 27, 2010 at 02:37 UTC
    What do you think?