JamesNC has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Tk; use Tk::DropSite; my $mw = tkinit; my $txt = $mw->Text(-font, ['Lucida Sans Unicode', '8'], -height, 4, - +width, 60)->pack(); my $drop = $txt->DropSite(-droptypes,'Win32', -dropcommand, [\&dropCmd +, $txt]); MainLoop; sub dropCmd { my ($widget, $selection) = @_; my $filename = $widget->SelectionGet(-selection => $selection,'STR +ING'); if (defined $filename) { $widget->insert('end', $filename."\n"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to disable Tk DragDrop console messages?
by pg (Canon) on Nov 19, 2003 at 07:33 UTC | |
|
Re: How to disable Tk DragDrop console messages?
by doran (Deacon) on Nov 19, 2003 at 05:33 UTC | |
by PodMaster (Abbot) on Nov 19, 2003 at 07:30 UTC | |
by JamesNC (Chaplain) on Nov 19, 2003 at 05:52 UTC | |
by doran (Deacon) on Nov 19, 2003 at 07:05 UTC | |
|
Re: How to disable Tk DragDrop console messages?
by PodMaster (Abbot) on Nov 19, 2003 at 07:46 UTC |