Hi Sylvain,

Sylvain Thibault wrote:
I am using Tkx with ActivePerl 5.10 and tkkit.dll on Windows XP.  I
want to use the package img::jpeg but tkkit only has PNG, ICO and XPM
support.  How do I add the Img package (or any package) so that it is
accessible to Tkx.  The Img package is in Tk85.dll.  I have tried
Tkx::lappend('::auto_path', 'C:/Tcl/bin')  C:/Tcl/bin/tk85.dll and
quite a few other combination with no success.

auto_path points to tkkit by default:

C:/Perl10/lib/auto/Tcl/tkkit.dll/lib/tcl8.5 C:/Perl10/lib/auto/Tcl/tkkit.dll/lib C:/Perl10/lib/auto/Tcl/tkkit.dll/lib/tk8.5 C:/Perl10/lib/auto/Tcl/tkkit.dll/lib/tk8.5/ttk

I do not want to use PERL_TCL_DL_PATH as I still want to have access
to the tkkit packages.

You want to lappend to ::auto_path as shown above, but 'C:/Tcl/lib' is the place to add. There is a way to extend the tkkit with additional modules as well if you are familiar with Tcl's core virtual file system APIs (needs to be done from a Tcl interpreter). I should add this info to the tkkit docs.

Jeff

Reply via email to