Re: Ann: Tkinter drag and drop module

2006-01-13 Thread tim





  
The module can be used with both standard Tkinter and Tix, and makes it
quite easy to e.g. drop a bunch of files from a file manager onto any
Tkinter widget.
It comes with a basic reference manual and a small demo app.
It can be found at
http://www.8ung.at/klappnase/TkinterDnD/TkinterDnD.html.

Any feedback is much appreciated.

Best regards

Michael

  


Hi Michael and list,

I tried to run dnddemo.py (win XP, Python2.4).

but get:

 File "C:\Documents and
Settings\Tim\Bureaublad\installes_pc_mac\programming\python\TkinterDnD-0.4\TkinterDnD\TkinterDnD.py",
line 333, in _require
 tkdndver = tkroot.tk.call('package', 'require', 'tkdnd')
TclError: can't find package tkdnd

Probably something went wrong installing tkdnd.
I got the libtkdnd10.dll from
http://mirror.optusnet.com.au/sourceforge/t/tk/tkdnd/ but am not so
sure where to put it.
The installation section on
http://www.iit.demokritos.gr/~petasis/Tcl/tkDND/tkDND.html

'If your platform is Microsoft Windows, then allong with the
distribution
there is a stubs enabled dynamic library (dll) that was built
against tk8.4a1, with the use of VC++ 5.0. If you cannot use the
provided
binary, then you can always create the required library by using the
VC++
project files located in the "win" directory of the tkDND distribution.
In all other cases, you should create the library only from the files
located in the directories "win" (*.cpp *.h) and "generic" (*.c *.h).
You will need a C++ compiler for this.'

wasn't very helpful for me.

Maybe someone can give me a simple howto for installing this?

thank you,
Tim



-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Ann: Tkinter drag and drop module

2005-07-21 Thread [EMAIL PROTECTED]
yup. that's exactly what i did, on win2k...

somehow, i was surprised that it would work - the filepath + file name
from the binary i'd dragged and dropped onto the .exe file was properly
passed to the frozen python script as an arg...

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Ann: Tkinter drag and drop module

2005-07-18 Thread Bruno Widmann
On 2005-07-14, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 i remember freezing a python console app i wrote some time ago using
 the mcmillan installer (kinda like py2exe) and was surprised to
 discover that binaries dragged and dropped onto the .exe file were
 handled properly as args...making a kind of no-gui drag and drop...

Do you mean you draged a file onto the .exe using the windows
explorer?

In this case the script just has to read in the first commandline
argument, as the Win-Explorer does the dd work and passes
the filename of the droped file on to the script.

You can test that easily by creating a small .bat file:
echo %1
pause


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Ann: Tkinter drag and drop module

2005-07-14 Thread [EMAIL PROTECTED]
i remember freezing a python console app i wrote some time ago using
the mcmillan installer (kinda like py2exe) and was surprised to
discover that binaries dragged and dropped onto the .exe file were
handled properly as args...making a kind of no-gui drag and drop...

how about a no-gui drag and drop for the console, would such a thing be
possible?

-- 
http://mail.python.org/mailman/listinfo/python-list