Help for this page

Select Code to Download


  1. or download this
    my $cmds = $tl->Frame;
    $cmds->pack;
        
    ...
             ->pack(-side => 'left');
    }
    $cmds->Button(-text => 'Cancel', -command => [$tl => 'destroy'])->pack
    +(-side => 'left');
    
  2. or download this
    my @button = defined $idx ? (
        OK     => sub { &edit_entry($idx,$legentry); $tl->destroy; },
        Apply  => [\&edit_entry, $idx, $legentry],
    ...
              ->pack(-side => 'left');
        }
    }
    
  3. or download this
    print SAVE <<END;
    for (0..$#activity) {
        my ($legend,$time,$start,$end,$elapsed) = 
    ...
    elapsed=$tsecs
    END2
    }
    
  4. or download this
    for (@activity) {
        print SAVE "[Button]\n";
        my $item;
        print SAVE "$item=" . $_->$item() for qw(legend time elapsed);
    }