ldln has asked for the wisdom of the Perl Monks concerning the following question:
I get "Free to wrong pool.."-error and program crashes when attempting to copy selected text in the widget with CTRL+c.
Win XP
Tk v804.027
perl v5.8.3
Tk::TableMatrix v1.1
Code below is "TableMatrixTest" from the "Demos"-section in the TableMatrix-module. Could anyone try to run it and see if CTRL+c and CTRL+x works ok?
use Tk; use Tk::TableMatrix; 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"; } } my $t = $top->Scrolled('TableMatrix', -rows => 21, -cols => 11, -width => 6, -height => 6, -titlerows => 1, -titlecols => 1, -variable => $arrayVar, -selectmode => 'extended', -resizeborders => 'both', -titlerows => 1, -titlecols => 1, -bg => 'white', # -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;
Thanks for all help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 Tk::TableMatrix CTRL+c bug?
by JediWizard (Deacon) on Sep 18, 2004 at 19:15 UTC | |
by ldln (Pilgrim) on Sep 18, 2004 at 22:50 UTC | |
by ldln (Pilgrim) on Sep 19, 2004 at 03:35 UTC | |
by Courage (Parson) on Sep 19, 2004 at 06:38 UTC | |
|
Re: Win32 Tk::TableMatrix CTRL+c bug?
by JamesNC (Chaplain) on Sep 19, 2004 at 15:36 UTC | |
by eserte (Deacon) on Sep 27, 2004 at 19:44 UTC | |
by JamesNC (Chaplain) on Sep 27, 2004 at 20:22 UTC | |
by eserte (Deacon) on Sep 27, 2004 at 20:44 UTC | |
by JamesNC (Chaplain) on Oct 06, 2004 at 03:36 UTC | |
by JamesNC (Chaplain) on Sep 27, 2004 at 21:10 UTC | |
| |
by ldln (Pilgrim) on Sep 19, 2004 at 23:23 UTC |