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

Tony Houghton <[email protected]>
Newsgroups gmane.comp.desktop.rox.user
Message-ID <[email protected]>
On Tue, 08 Jun 2010 09:47:06 +0100
Jim Lesurf <[email protected]> wrote:

> I have been hoping there was something like 'box.getfilename()'. i.e. a
> method called something like 'getfilename' that would attach to the box
> process and let me find out the name before the code went into mainloop.
> But since I know little about python (and even less about ROX-Lib) this may
> be a fantasy on my part!

As SaveBox() derives from gtk.Dialog you could either use the run()
method instead of show() or connect to its "response" signal. I haven't
followed the thread closely enough to understand exactly what you're
trying to do - something to do with getting a filename instead of doing
an actual save? - but it looks like you could override
Saveable.save_to_file() for that.

-- 
TH * http://www.realh.co.uk

------------------------------------------------------------------------------
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.