Subject: | Bug in Tk::TableMatrix 1.23 |
Date: | Tue, 9 Feb 2016 18:19:44 +0000 |
To: | "bug-Tk-TableMatrix [...] rt.cpan.org" <bug-Tk-TableMatrix [...] rt.cpan.org> |
From: | "Joe A. Markham" <JAMarkham [...] eganco.com> |
Hello-
I think I have found a minor bug in Tk::TableMatrix version 1.23. When there are columns specified as title columns in the table definition, the columns cannot be spanned.
Relevant info:
Tk::TableMatrix 1.23
Tk 804.033
Perl V5.22.1
Windows 7 Professional, Service Pack 1 (Version 6.1.7601)
This script will reproduce the error on my system:
##########################################
use strict;
use warnings;use Tk;
use Tk::TableMatrix::Spreadsheet;
my $table = {};
for (my $i=0;$i<3;$i++){
for (my $j=0;$j<3;$j++){
$table->{"$i,$j"}="Row $i Col $j";
}
}
#Spreadsheet without title rows and columns
my $mwt = MainWindow->new( );
my $t = $mwt->Scrolled('Spreadsheet', -rows => 3, -cols => 3,
-width => 6, -height => 6,
# -titlerows => 1, -titlecols => 1,
-variable => $table,
);
$t->spans("0,0","0,3");
$t->spans("2,1","2,2");
$t->pack(-expand => 1, -fill => 'both');
#Spreadsheet with title row
my $t2 = $mwt->Scrolled('Spreadsheet', -rows => 3, -cols => 3,
-width => 6, -height => 6,
-titlerows => 1,
-variable => $table,
);
$t2->spans("0,0","0,3");
$t2->spans("2,1","2,2");
$t2->pack(-expand => 1, -fill => 'both');
#Spreadsheet with title row & column - this one shows the bug
my $t3 = $mwt->Scrolled('Spreadsheet', -rows => 3, -cols => 3,
-width => 6, -height => 6,
-titlerows => 1, -titlecols => 1,
-variable => $table,
);
$t3->spans("0,0","0,3");
$t3->spans("2,1","2,2");
$t3->pack(-expand => 1, -fill => 'both');
MainLoop;
Thank you for looking at this. Please feel free to contact me if any of the above is unclear or insufficient.
-Joe
JOE MARKHAM, Industrial Controls Engineer
[Egan Logo]<http://www.eganco.com/>
www.eganco.com<http://www.eganco.com/>
direct: 763.591.5525 // cell: 612.244.0114
24 hour service: 763.595.4300
email: jamarkham@eganco.com<mailto:jamarkham@eganco.com>
7115 Northland Terrace N #400, Brooklyn Park, MN 55428
[Title: Engage with Egan on Facebook]<https://www.facebook.com/pages/Egan-Company/104384879628629>[Follow Egan on LinkedIn]<https://www.linkedin.com/company/89746>[Subscribe to Egan videos on YouTube]<https://www.youtube.com/user/EganCompanyMN>
Message body is not shown because it is too large.