Ann: Tkinter drag and drop module
Bruno Widmann
bwidmann at utanet.at
Mon Jul 18 10:21:14 EDT 2005
On 2005-07-14, tchurm at gmail.com <tchurm at gmail.com> 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 d&d 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
More information about the Python-list
mailing list