Re: Pass Perl functions to Tcl interpreter

[email protected] (Kevin Walzer) Mon, 20 Aug 2012 10:22:14 -0400
Newsgroups perl.tcltk
Organization WordTech Communications LLC
Message-ID <[email protected]>
On 8/19/12 5:38 PM, Jeff Hobbs wrote:
> Hi Kevin,
>
> The binding for Tkx is much more efficient than Tkinter, and does allow for 2 way communication and command binding in the interface.
>
> Alexander noted you have ::perl::Eval in Tcl, but there are more ways to bind the 2 pieces together.  I would recommend looking at the code for ppm in ActivePerl, which uses Tkx in various elaborate ways (blending Tcl and Perl in interesting ways), for lots of good code examples.  See
>    /usr/local/ActivePerl-<ver>/bin/ppm
>    /usr/local/ActivePerl-<ver>/lib/ActivePerl/PPM/*
>
> Note that ActivePerl uses Tkx via tkkits (baseballs with extended functionality).  These can be extended (see archives of this list), but you can use external packages as needed.
>
> Jeff
>

Jeff,

Thanks to you and Alexander for this advice: it appears that I can 
safely integrate Tcl's AppleEvent package with Tkx given the mechanisms 
you describe. Awesome.

Thanks,
Kevin


-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com