Fwd: [pygtk] Working with files with python (gtk)
Ed Catmur
ed at catmur.co.uk
Sat Mar 17 22:30:01 WST 2007
On Fri, 2007-03-16 at 01:36 -0400, Edward A Robinson wrote:
> On 3/15/07, Ed Catmur <ed at catmur.co.uk> wrote:
> > On Thu, 2007-03-15 at 15:28 -0400, Edward A Robinson wrote:
> > > Also how would I get cut and paste to work so that I can cut a file
> > > from my image browser then paste it into nautilus. I know how to get
> > > it to work for basic text but not for files.
> > Use gtk.Clipboard.set_with_data with
> > targets=gtk.target_list_add_uri_targets(); see gtk.SelectionData.
> >
> My problem isent cutting and pasting of text but doing it so that I
> can cut a file and paste it into nautilus
By placing an item on the clipboard with a uri target, nautilus will
view pasting that target as a command to copy/paste the file that uri
points to.
Ed
More information about the pygtk
mailing list