in reply to removing rows from a Tk::Table
from site/lib/Tk/Table.pm:
I hope that clears up what you need to do.sub clear { my $self = shift; my $rows = $self->cget(-rows); my $cols = $self->cget(-columns); foreach my $r (1 .. $rows) { foreach my $c (1 .. $cols) { my $old = $self->get( $r, $c ); next unless $old; $self->LostSlave($old); $old->destroy; } } $self->_init; $self->QueueLayout(_SlaveSize); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: removing rows from a Tk::Table
by qumsieh (Scribe) on Sep 12, 2004 at 14:58 UTC | |
|
Re^2: removing rows from a Tk::Table
by Courage (Parson) on Sep 12, 2004 at 15:47 UTC |