I was wondering if anyone had any code or links to any code that illustrated the process of getting a perl/tk widget to accept a dnd event from another application?

The only sources I have found on the whole of the internet are listed in the comp.lang.perl.tk FAQ, section 10.22, namely

http://www.perltk.org/articles/dnd/dnd.html ... and

http://www.perl.com/pub/a/2001/12/11/perltk.html

The second article deals with local drops only, and the first - while mentioning remote drops - provides a script which does not seem to work.

In brief, I am unable to get any perl/tk widget to "accept" the drop - I drag a file over it from a XDND-compatible file-manager (ROX) and the window refuses to accept the file - or at least, the file icon does not gain a "+" sign indicating I can drop it, and my script refuses to respond to the drop event.

If there are any code examples that illustrate this, please let me know (I've searched google, lycos, and even freshmeat (looking at all perl/tk apps - none use remote drops) ... and I'm beginning to wonder if *anyone* has ever written anything that uses remote drops!!)


In reply to Perl/Tk remote drag-and-drop by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.