##this package demonstrates TkDND on the Mac. package require tkdnd pack [text .t -bg white] -fill both -expand yes tkdnd::drop_target register .t * bind .t <> {%W insert end %D} ##Note these two bindings are no-op on the Mac; the C-level impelmentation takes care of the changing cursor. bind .t <> { %W configure -bg red} bind .t <> {list copy; %W configure -bg white}