in reply to perl tk how to clear contents of text widget
your command$text->delete("1.0", 'end');
makes no sense. A Scrolled Text widget dosn't know what => means. Try this-command => [$right_frame => \&clear_file])->pack(-side => "bottom")
my $Close_help = $left_frame->Button(-text => ' Close Help ', -command => \&clear_file )->pack(-side => "bottom"); sub clear_file { $right_frame->delete('1.0','end'); $right_frame->packForget; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl tk how to clear contents of text widget
by john.tm (Scribe) on Jun 29, 2014 at 13:59 UTC | |
by zentara (Cardinal) on Jun 30, 2014 at 09:27 UTC | |
by Anonymous Monk on Jun 29, 2014 at 20:32 UTC | |
by john.tm (Scribe) on Jun 30, 2014 at 12:55 UTC |