Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 2506254b1f32b24816bc6e6a46f851cd > files > 20

perl-Tk-TableMatrix-1.230.0-10.mga4.x86_64.rpm



use Tk;

use Tk::TableMatrix::Spreadsheet;

use Data::Dumper qw( DumperX);
my $top = MainWindow->new;

my $arrayVar = {};

foreach my $row  (0..20){
	foreach my $col (0..10){
		$arrayVar->{"$row,$col"} = "r$row, c$col";
	}
}

print "Got Here \n";

my $t = $top->Scrolled('Spreadsheet', -rows => 21, -cols => 11, 
                              -width => 6, -height => 6,
			      -titlerows => 1, -titlecols => 1,
			      -variable => $arrayVar,
			      -selectmode => 'extended',
			      -titlerows => 1,
			      -titlecols => 1,
			     #  -state => 'disabled'
			    #  -colseparator => "\t",
			    #  -rowseparator => "\n"
                    );
		    
#$t->tagConfigure('active', -bg => 'gray90', -relief => 'sunken');
#$t->tagConfigure( 'title', -bg => 'gray85', -fg => 'black', -relief => 'sunken');

# $t->bind("<Any-Enter>", sub { $t->focus });



$t->pack(-expand => 1, -fill => 'both');

Tk::MainLoop;