in reply to X Error in Tk remote drag and drop
So, the below does work on my Win32 box. Hopefully this will provide a few clues for your Linux problem.
Update: I am using Perl 5.22, Active State on Win XP. Tk and DropSite come in the standard dist, so I didn't have to install anything. Sorry I can't be of more help as I have no Linux to test on.#!/usr/bin/perl use strict; use Tk; use Tk::DropSite qw(Win32); my $mw = new MainWindow(-width => 500, -height => 300); my $label = $mw->Label(-text => "this is test")->pack->place(-relwidth + => 1.0, -relheight => 1.0); #$label->DropSite(-droptypes => ['XDND'], -dropcommand => [\&dropFile, + $label]); $label->DropSite( -dropcommand => [\&dropFile, $label]); MainLoop; sub dropFile { print "DROP\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: X Error in Tk remote drag and drop
by Anonymous Monk on May 29, 2016 at 16:39 UTC | |
by Marshall (Canon) on May 29, 2016 at 18:36 UTC |