Drag and drop in Tkinter. How difficult is it?

Christos TZOTZIOY Georgiou tzot at sil-tec.gr
Thu Sep 4 13:11:57 EDT 2003


On Thu, 04 Sep 2003 09:14:08 -0000, rumours say that claird at lairds.com
(Cameron Laird) might have written:

>In article <ApGdnUgAC6p1AMuiU-KYuA at comcast.com>,
>Marc <losnations at comcast.net> wrote:

[Marc]
>>I was thinking about developing a drag and drop application and was curious
>>how difficult it is to do. Basically I want to have a set of objects that I
>>move around the screen and drop into place.

- Cameron -
>LOTS of applications--several I've written, I
>know--do this sort of thing.  You'll need to
>learn about bind(), and most likely the events
>  <1>
>  <B1-Motion>
>  <ButtonRelease-1>
>in particular:  you'll teach <1> to start a
>drag, <B1-Motion> to display the dragged object
>moving around the screen, and <ButtonRelease-1>
>to finish the drop.
>
>Have you read <URL: http://
>groups.google.com/groups?as_q=drag+drop+tkinter&as_ugroup=comp.lang.python >?

I should add that drag and drop in the same application can be done
easily, but it's hard to do it between your application and others (too
much window manager dependencies...)
-- 
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.




More information about the Python-list mailing list