http://qs321.pair.com?node_id=287796


in reply to Perl/Tk widget removal problem...

Use gridForget() instead. You'll lose your configuration options, but it seems to work.

And some sample code, just because:

#!/usr/bin/winperl use warnings; use strict; use Tk; my $mw = MainWindow->new(); $mw->Label(-text => 'Do it')->grid(); my $btn; $btn = $mw->Button( -text => 'Click me', -command => sub { $btn->gridForget() }, )->grid(); MainLoop;

bbfu
Black flowers blossom
Fearless on my breath