[pygtk] File.copy_async missing

Pietro Battiston me at pietrobattiston.it
Thu Jan 5 22:13:04 WST 2012


Hello,

the following code, using pygtk, works:

import gio

f = gio.File('a')
g = gio.File('b')
f.copy_async( g, (lambda x : None))


while the following, using introspection, doesn't:

from gi.repository import Gio

f = Gio.file_new_for_path('a')
g = Gio.file_new_for_path('b')
f.copy_async( g, (lambda x : None))


because "'__main__.GLocalFile' object has no attribute 'copy_async'".

Is this a bug/work in progress or is there something I'm missing?

I'm using  libglib 2.30.2-4 and gobject-introspection1.31.1-1 under
Debian testing.

thanks in advance

Pietro




More information about the pygtk mailing list