On Thu, May 27, 2010 at 2:45 PM, John Storta Jr. <j...@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
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor