http://www.perlmonks.org?node_id=1051554

emilbarton has asked for the wisdom of the Perl Monks concerning the following question:

Hello! There's a problem I meet with my tables in Csgrouper. These tables contain rows with several widgets on each, usually beggining with a checkbox - in order to select or unselect the row for deletion and other purposes.

This would work OK if there wasn't a remanence of the checkboxes after deletion, at table bottom. However inactive, these ghost rows and checkboxes look bad and could lead to errors since they remain checkable. What could I do to get rid of them?
Thank you in advance.

https://github.com/emilbarton/Csgrouper

Replies are listed 'Best First'.
Re: Problem in row deletion with Tk::Table
by Anonymous Monk on Aug 30, 2013 at 07:02 UTC
    what file/function? cutdown demonstration? :)
      For instance:
      UPDATE: see the 'standalone' example below.
        I had a look at csgrouper.pl, sorry, that is way too much code (7k lines). Here is the idea
        #!/usr/bin/perl -- use strict; use warnings; use Tk; my $mw = tkinit; my $Section_tblw = $mw->Table( ... 20 lines or less MainLoop;

        If you can get it down to 20 lines + boilerplate, we might make some progress