Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Problem in row deletion with Tk::Table

by emilbarton (Scribe)
on Aug 30, 2013 at 07:00 UTC ( #1051554=perlquestion: print w/ replies, xml ) Need Help??
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

Comment on Problem in row deletion with Tk::Table
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1051554]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-12-29 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (187 votes), past polls