List Info

Thread: Tkinter DnD - Drag and Drop




Tkinter DnD - Drag and Drop
user name
2006-07-13 21:25:40
Hello all,

There is a Tcl/Tk package called tkDnD with a Python wrapper
called
TkinterDnD, which allow drag and drop operations with a
Tkinter GUI.

http://sourcefo
rge.net/projects/tkdnd
http://www.8ung.at/klappnase/TkinterDnD/TkinterDnD.html

This should allow you to create callbacks for files dropped
onto Tkinter
windows, something I am keen to do.

It looks like the TkinterDnD package is designed to be used
with the
older version 1 of tkDnD. It also looks like this doesn't
work with
Python 2.4.

I can get the tkDnD package (v1) installed into the Tcl
package that
comes with Python (for Windows XP SP2). The TkinterDnD demo
runs, and
icons appear when you drag files over the windows. However
the callbacks
don't happen.

Does anyone have any success in getting any combination of
these
packages working with Python 2.4 and windows ?

All the best,

Fuzzyman
http:/
/www.voidspace.org.uk/python/index.shtml

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discusspython.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Tkinter DnD - Drag and Drop
user name
2006-07-14 13:09:04
On Thu, 13 Jul 2006 22:25:40 +0100
Michael Foord <mikepcblokes.com> wrote:

> Hello all,
> 
> There is a Tcl/Tk package called tkDnD with a Python
wrapper called
> TkinterDnD, which allow drag and drop operations with a
Tkinter GUI.
> 
> http://sourcefo
rge.net/projects/tkdnd
> http://www.8ung.at/klappnase/TkinterDnD/TkinterDnD.html
> 
> This should allow you to create callbacks for files
dropped onto Tkinter
> windows, something I am keen to do.
> 
> It looks like the TkinterDnD package is designed to be
used with the
> older version 1 of tkDnD. It also looks like this
doesn't work with
> Python 2.4.
> 
> I can get the tkDnD package (v1) installed into the Tcl
package that
> comes with Python (for Windows XP SP2). The TkinterDnD
demo runs, and
> icons appear when you drag files over the windows.
However the callbacks
> don't happen.
> 
> Does anyone have any success in getting any combination
of these
> packages working with Python 2.4 and windows ?
> 
> All the best,

Hi Michael,

I made the same observations. Maybe the problem is that the
tkdnd binary is built against an
older version of Tcl/Tk. I currently don't have a windows
box running, so I planned to wait
until the unix part of tkdnd2 is fully implemented before I
start updating the TkinterDnD module.
The author of tkdnd wrote at
 http://groups.google.com/group/comp.lang.tc
l/browse_thread/thread/37c43ef2aeb2de18/d2d03a79b955f3d4?lnk
=st&q=tkdnd&rnum=8
that tkdnd2 has a compatibility layer for tkdnd1-code,
so maybe you could try to use tkdnd2 and see how far you get
(I have not tried this so far).

Michael
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discusspython.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Tkinter DnD - Drag and Drop
user name
2006-07-17 13:19:04
Michael Lange wrote:
> On Thu, 13 Jul 2006 22:25:40 +0100
> Michael Foord <mikepcblokes.com> wrote:
>
>   
>> Hello all,
>>
>> There is a Tcl/Tk package called tkDnD with a
Python wrapper called
>> TkinterDnD, which allow drag and drop operations
with a Tkinter GUI.
>>
>> http://sourcefo
rge.net/projects/tkdnd
>> http://www.8ung.at/klappnase/TkinterDnD/TkinterDnD.html
>>
>> This should allow you to create callbacks for files
dropped onto Tkinter
>> windows, something I am keen to do.
>>
>> It looks like the TkinterDnD package is designed to
be used with the
>> older version 1 of tkDnD. It also looks like this
doesn't work with
>> Python 2.4.
>>
>> I can get the tkDnD package (v1) installed into the
Tcl package that
>> comes with Python (for Windows XP SP2). The
TkinterDnD demo runs, and
>> icons appear when you drag files over the windows.
However the callbacks
>> don't happen.
>>
>> Does anyone have any success in getting any
combination of these
>> packages working with Python 2.4 and windows ?
>>
>> All the best,
>>     
>
> Hi Michael,
>
> I made the same observations. Maybe the problem is that
the tkdnd binary is built against an
> older version of Tcl/Tk. I currently don't have a
windows box running, so I planned to wait
> until the unix part of tkdnd2 is fully implemented
before I start updating the TkinterDnD module.
> The author of tkdnd wrote at
>  http://groups.google.com/group/comp.lang.tc
l/browse_thread/thread/37c43ef2aeb2de18/d2d03a79b955f3d4?lnk
=st&q=tkdnd&rnum=8
> that tkdnd2 has a compatibility layer for tkdnd1-code,
> so maybe you could try to use tkdnd2 and see how far
you get (I have not tried this so far).
>   
Thanks for the reply.

Unfortunately it didn't work (for me) when I tried it with
tkdnd2.

I will have to wait for the update to TkinterDnD. 

Fuzzyman
http:/
/www.voidspace.org.uk/python/index.shtml

> Michael
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discusspython.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
>
>   

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discusspython.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Tkinter DnD - Drag and Drop
user name
2006-07-19 09:55:11
On Mon, 17 Jul 2006 14:19:04 +0100
Michael Foord <mikepcblokes.com> wrote:

> >
> > I made the same observations. Maybe the problem is
that the tkdnd binary is built against an
> > older version of Tcl/Tk. I currently don't have a
windows box running, so I planned to wait
> > until the unix part of tkdnd2 is fully implemented
before I start updating the TkinterDnD module.
> > The author of tkdnd wrote at
> >  http://groups.google.com/group/comp.lang.tc
l/browse_thread/thread/37c43ef2aeb2de18/d2d03a79b955f3d4?lnk
=st&q=tkdnd&rnum=8
> > that tkdnd2 has a compatibility layer for
tkdnd1-code,
> > so maybe you could try to use tkdnd2 and see how
far you get (I have not tried this so far).
> >   
> Thanks for the reply.
> 
> Unfortunately it didn't work (for me) when I tried it
with tkdnd2.
> 
> I will have to wait for the update to TkinterDnD. 
> 

Hi Michael,

now I became curios, and started wrapping tkdnd2.0 .
The Python interface looks good to me, however I could not
manage to get everything working.
On windows dropping files from Explorer works, dragging
operations seem to start but I cannot seem to
figure out how to successfully finish them.
On linux nothing seems to work.
I think that probably the problem is not the wrapper, but
the usage; the tkdnd2.0 man page is buggy and maybe
not complete.
If you want to try it anyway, you can find it at:

    http://www.8ung.at/klappnase/TkinterDnD2/TkinterDnD2.ht
ml

, and if you do so, please do not forget to report your
experience

Regards

Michael

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discusspython.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Tkinter DnD - Drag and Drop
user name
2006-07-19 12:53:45
Michael Lange wrote:
> On Mon, 17 Jul 2006 14:19:04 +0100
> Michael Foord <mikepcblokes.com> wrote:
>
>   
>>> I made the same observations. Maybe the problem
is that the tkdnd binary is built against an
>>> older version of Tcl/Tk. I currently don't
have a windows box running, so I planned to wait
>>> until the unix part of tkdnd2 is fully
implemented before I start updating the TkinterDnD module.
>>> The author of tkdnd wrote at
>>>  http://groups.google.com/group/comp.lang.tc
l/browse_thread/thread/37c43ef2aeb2de18/d2d03a79b955f3d4?lnk
=st&q=tkdnd&rnum=8
>>> that tkdnd2 has a compatibility layer for
tkdnd1-code,
>>> so maybe you could try to use tkdnd2 and see
how far you get (I have not tried this so far).
>>>   
>>>       
>> Thanks for the reply.
>>
>> Unfortunately it didn't work (for me) when I tried
it with tkdnd2.
>>
>> I will have to wait for the update to TkinterDnD.

>>
>>     
>
> Hi Michael,
>
> now I became curios, and started wrapping tkdnd2.0 .
> The Python interface looks good to me, however I could
not manage to get everything working.
> On windows dropping files from Explorer works, dragging
operations seem to start but I cannot seem to
> figure out how to successfully finish them.
> On linux nothing seems to work.
> I think that probably the problem is not the wrapper,
but the usage; the tkdnd2.0 man page is buggy and maybe
> not complete.
> If you want to try it anyway, you can find it at:
>
>     http://www.8ung.at/klappnase/TkinterDnD2/TkinterDnD2.ht
ml
>
> , and if you do so, please do not forget to report your
experience
>
>   
I certainly will do. All I need is dropping, so I will see
how that goes 
and report back.

Thanks

Fuzzyman
http:/
/www.voidspace.org.uk/python/index.shtml
> Regards
>
> Michael
>
>
>
>
>   

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discusspython.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )