How to use a tcl/tk widget that needs a tcl array

[email protected] ("Lindley, Robert A") Fri, 22 Oct 2010 10:01:01 -0700
Newsgroups perl.tcltk
Message-ID <4225DA6DAA457A42BF08D6A8D539238B2B6619572A@XCH-SW-09V.sw.nos.boeing.com>
Hi,

I would like to use the tktable widget, but can't find any information on how to pass something as the -variable option and be able to display and retrieve data. 

    use Tkx;
    Tkx::package_require("Tktable");

    my $mw = Tkx::widget->new(".");
    my $t = $mw->new_table(
        -rows => 5,
        -cols => 3,
    );
    $t->g_pack;
    
    Tkx::MainLoop()

I found the above in the ActiveState documentation. It works as expected.

All attempts to display or retrieve data have failed.

Any help would be appreciated.

Robert Lindley
[email protected]