in reply to Tk::grid and gridRemove()

After some more playing around, I found that gridForget() method, which has an identical description to gridRemove(), actually works. Now, just to satisfy my own curiosity, what's the difference between the two?

Replies are listed 'Best First'.
Re^2: Tk::grid and gridRemove()
by eserte (Deacon) on Aug 05, 2004 at 00:20 UTC
    "remove" seems to be missing in the Perl/Tk port. The following patch against Tk804.027 should fix the problem:
    --- ./Tk/Widget.pm.orig 2004-03-17 17:00:32.000000000 +0100 +++ ./Tk/Widget.pm 2004-08-05 02:15:35.000000000 +0200 @@ -63,7 +63,7 @@ use Tk::Submethods( 'grab' => [qw(current status release -global)], 'focus' => [qw(-force -lastfor)], 'pack' => [qw(configure forget info propagate sl +aves)], - 'grid' => [qw(bbox columnconfigure configure for +get info location propagate rowconfigure size slaves)], + 'grid' => [qw(bbox columnconfigure configure for +get info location propagate remove rowconfigure size slaves)], 'form' => [qw(check configure forget grid info s +laves)], 'event' => [qw(add delete generate info)], 'place' => [qw(configure forget info slaves)], @@ -1151,7 +1151,7 @@ { local $SIG{'__DIE__'} = \&Carp::croak; my $w = shift; - if (@_ && $_[0] =~ /^(?:bbox|columnconfigure|configure|forget|info|l +ocation|propagate|rowconfigure|size|slaves)$/x) + if (@_ && $_[0] =~ /^(?:bbox|columnconfigure|configure|forget|info|l +ocation|propagate|remove|rowconfigure|size|slaves)$/x) { my $opt = shift; Tk::grid($opt,$w,@_);