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


_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to