[Tutor] Recent Documents

Joel Goldstick joel.goldstick at gmail.com
Thu May 27 21:22:02 CEST 2010


On Thu, May 27, 2010 at 2:45 PM, John Storta Jr. <js at storta.net> wrote:

> I am working on an app that runs in gnome and uses gtk.  I am extremely
> new to Python.  (been working with it for all of 2 days).
>
> I am wanting to add a 'Recent Documents' menu option to the app.  Gnome
> tracks your recent documents -- apparently in a file called
> '.recently-used.xbel' in your home directory.
>
> So as to avoid reinventing the wheel, does anyone know of any examples
> of accessing the Gnome recently used file list from within Python?  Or
> is there some samples of how to implement something independently?
>
> It seems like the type of thing that would be fairly common as part of
> integrating a Python app with Gnome.  I cannot image every app maintains
> their own list of recently used docs when it is already stored within
> the desktop.
>
> If anyone has any ideas, please let me know.
>
>
> Thanks,
> John S.
>
> I looked at the file.  It is an xml file.  There are several xml modules
included with python that will help you to read this file.
Joel Goldstick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100527/2139ab7b/attachment.html>


More information about the Tutor mailing list