Re: TableList Widget and Perl

[email protected] (Jeff Hobbs) Thu, 23 Sep 2010 17:24:08 -0700
Newsgroups perl.tcltk
Message-ID <[email protected]>
Hi Gary,

On 22/09/2010 2:48 PM, gary sachs wrote:
> couple of quick questions... if you don't mind...

I hope you don't mind that I transition this to the Tcl module mailing 
list, as Tkx leverages it and it's the best mailing list for Tkx discussion.

> 1. is the Tcl TableList widget available through Tkx in PERL?

No, not currently.  It is pure Tcl, so it would be added to the list 
without too much trouble.  "treectrl" is included, and is what we use 
for our own tools.  It is a C-based tree, and _very_ advanced in its 
features.  See some screenshots at:
	http://tktreectrl.sourceforge.net/

> 2. Any pointers to documentation and/or PERL examples of implementing the TableList?

First you'd have to add the package to the tkkit, or extend the 
auto_path to find it on disk.  After that, it is a matter of using 
standard Tcl -> Perl/Tkx translation of the existing tablelist 
documentation (perldoc Tkx).

> 3. Any examples of using Tkx to do a "pure" Tcl widget... like an entry widget? Just curious.
...
> using ActivePerl 5.10

Yes, the Tkx docs 
(http://docs.activestate.com/activeperl/5.12/lib/Tkx.html) do cover this 
under the "Megawidgets" section.  You will also find examples in 
Tkx::LabEntry.  Also check out the tutorial:
    http://docs.activestate.com/activeperl/5.12/lib/Tkx/Tutorial.html

Regards,

Jeff