gcmd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gcmd-dev] Python plugins


From: Piotr Eljasiak
Subject: Re: [gcmd-dev] Python plugins
Date: Thu, 30 Nov 2006 23:19:33 +0100

The attached python script was removed by list server - I'm re-sending
it once again:

        #! /usr/bin/env python
        
        #import pygtk; pygtk.require('2.0')
        #import gtk
        
        try:
            import gnomevfs
        except ImportError:
            import gnome.vfs as gnomevfs
        
        from datetime import datetime
        
        def main(main_wnd_xid, active_cwd, inactive_cwd,
        selected_files):
            print 'main_wnd_xid:', main_wnd_xid
            print 'active_cwd:', active_cwd
            print 'inactive_cwd:', inactive_cwd
            print 'selected_files:', len(selected_files)
            for uri in selected_files:
                f = gnomevfs.get_file_info(uri)
                print f.name, f.size, datetime.fromtimestamp(f.mtime)
            return True
        





reply via email to

[Prev in Thread] Current Thread [Next in Thread]