Here is my code:

def fileinfo_callback(handle, results):
        for uri, exc_type, info in results:
                print uri
                print info
                if not exc_type:
                        try:
                                print  info.size
                        except ValueError:
                                pass


this function is defined abeve the main Window class, so it is global.

In the main window,  which is created by tepache using glade i am
using a code for a button's on_click event
 
uri = server + "/" + self.Txt_add.get_text()
gnomevfs.async.get_file_info(uri,fileinfo_callback, options =
gnomevfs.FILE_INFO_DEFAULT)

and here is the output:

file:[EMAIL PROTECTED]:22/home/oguz/identity.pub
<gnomevfs.FileInfo '(null)'>

so i can not get the size of the file. I dont know what the problem
is, if you help i will be happy.
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to