Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: TkDND with PAR::Packer

by huck (Prior)
on Feb 23, 2017 at 06:29 UTC ( [id://1182592]=note: print w/replies, xml ) Need Help??


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

Tkx::lappend('::auto_path', 'd:\active\tkx_extra\tkdnd2.6'); Tkx::package_require('tkdnd');
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.

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

Tkx::lappend('::auto_path', $ENV{PAR_TEMP}); Tkx::package_require('tkdnd');
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.

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

my $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');
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 least

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1182592]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2025-12-17 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (98 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.