Re: Using drag and drop to set where data should be saved

Stephen Watson <[email protected]>
Newsgroups gmane.comp.desktop.rox.user
Message-ID <[email protected]>
Jim Lesurf <[email protected]> wrote:

> In article <[email protected]>, Stephen
> Watson <[email protected]> wrote:
> > Jim Lesurf <[email protected]> wrote:
> 
> [snip lots]
> > > 
> > > Another is that I've played with the python example at
> > > http://roscidus.com/desktop/Tutorials/Saving
> > > 
> > > and it works quite nicely for A and B above. So I'm hoping that there
> > > is a simple way to extract the full pathname of the file created by
> > > the drag-and-drop and then pass that on to launching the main code. Is
> > > there not a method for reading this name from the class of object for
> > > 'box'.
> > etc?
> 
> > As I recall, the ROX-Lib version expects the call back to create the
> > target file before returning and throws an exception if it doesn't. 
> > You'll need to catch that if you're deferring file creation to a
> > different process.
> 
> What I've been hoping is that there would be a method that lets me extract
> the full-path filename used by SaveBox. The idea being that the python
> could create a 'placeholder' file with some brief contents. But I would
> then know the destination file the user wants, so the following program
> would overwrite that with what was actually desired as output. i.e. after
> the python part does its 'save' and the file appears the python rox loop
> quits by passing on a system command in the command environment for the
> compiled item, telling it the destination file name. (Hope that
explanation
> makes sense!)
> 
> However I've experimented with the SaveBox example and it looks like it
> runs straight though the python into the mainloop before you even get to
> drag and drop the icon! Once it goes into mainloop I have no idea (at
> present) how you would then recover the filename.

Show the code.

-- 
Stephen Watson     http://www.kerofin.demon.co.uk/
If you read this on a mailing list, send any reply back to the list and not
to me.  Not even CC.
Strange as I seem I'm getting stranger by the minute

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.