[pygtk] File system notification

John Stowers john.stowers.lists at gmail.com
Tue Dec 15 18:57:05 WST 2009


On Tue, 2009-12-15 at 11:43 +0100, danieleisca wrote:
> Hi,
> I would update my application's directory tree when a folder is created 
> or deleted from the window manager. What's the way to handle such event?
> Thanks!

Use GIO to monitor for file changes

http://library.gnome.org/devel/gio/stable/GFile.html#g-file-monitor

That is the documentation for the C API but the python-gobject binding
of GIO retains the same function,constant,class names, etc.

John

> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/



More information about the pygtk mailing list