[Tutor] moving widgets around

John Miller jmillr at umich.edu
Thu Dec 30 19:31:11 CET 2004


I recently had occasion for drag 'n drop functionality in Tkinter, and 
after much searching around decided that tkdnd.py was the only viable 
solution (at least, that I could find). The code is actually quite 
understandable (well, at the 'large chunks' level). In the directory 
where tkdnd.py is located simply type:

pythonw tkdnd.py

and it will work. If you find anything simpler or more bare bones, 
please let us know.

John Miller

On Dec 29, 2004, at 4:25 PM, Sean McIlroy <sean_mcilroy at yahoo.com> 
wrote:

> I'd like to get some example code showing how to move
> widgets around in drag-and-drop fashion. I've tried
> looking at tkDND.py (I think that's what it's called)
> but that was a little involved - what I want to know
> is the barest of bare bones. Any help would be majorly
> fabulous. Merci beaucoup.
>
> STM



More information about the Tutor mailing list