in reply to TkDND with PAR::Packer
is this on windows?
in Tkx example was:Re^3: Tcl & Tcl::Tk used for 1 main window i posted a working TKDND program i use from time to time. To get it to work i needed to place tkdnd2.6 into a known location (d:\active\tkx_extra\tkdnd2.6) and then use tk-magic
to get tk to search for it there. i suppose that somehow tk knows in your systems to search under System\Library\Tcl\8.5\ for tk packages, but when you did your -l magic with pp that is not where those items ended up.Tkx::lappend('::auto_path', 'd:\active\tkx_extra\tkdnd2.6'); Tkx::package_require('tkdnd');
tkkit is the name of a reduced tcl/tk environment that activestate perl makes available. based on your System\Library\Tcl\8.5\ path i dont think you are using it, but you might find some clues to extending it in http://grokbase.com/t/perl/tcltk/102hfq8ynx/drag-n-drop-in-perl-tkx/oldest
i suspect your -l magic with pp is making those needed files available SOMEWHERE. Based on your begin-magic structure above i suspect it is under $ENV{PAR_TEMP} somewhere. you might try playing with variants of
to get it to work. While your pp'ed program is running you might try printing out $ENV{PAR_TEMP} and refining the above path further by searching under it.Tkx::lappend('::auto_path', $ENV{PAR_TEMP}); Tkx::package_require('tkdnd');
another option might just be to distribute the tkdnd2.8 package and install it to some location you know you can write to, such as where the pp'ed executable is. in that case you could do
Im out on a limb again, i dont think its windows 'cus there is no dll, but there is a dylib, but i thought id give it a try at leastmy $where_tkdnd_is=cwd; # or some other way to determine where we are +running from Tkx::lappend('::auto_path', $where_tkdnd_is); Tkx::package_require('tkdnd');
|
|---|