[pygtk] Is there a gnome keyring api for PyGi?

2011-06-09 Thread Leon Bogaert
Hi all, Is there a Gnome Keyring api for pygi? I tried something like this: from gi.repository import GnomeKeyring But I can't find the module to load. Does someone know if/how I can access the Gnome Keyring api with python gobject introspection? Or should I just use the static

Re: [pygtk] Is there a gnome keyring api for PyGi?

2011-06-09 Thread John Stowers
On Thu, 2011-06-09 at 18:26 +, Leon Bogaert wrote: Hi all, Is there a Gnome Keyring api for pygi? I tried something like this: from gi.repository import GnomeKeyring But I can't find the module to load. Does someone know if/how I can access the Gnome Keyring api with python

[pygtk] Making a window just big enough to hold a certain image inside

2011-06-09 Thread Gerardo Marset
This is part of my code: imagesize = (128, 128) window =gtk.Window() window.resize(imagesize[0],imagesize[1]) scrolled =gtk.ScrolledWindow() scrolled.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) scrolled.set_shadow_type(gtk.SHADOW_NONE) area =gtk.DrawingArea()|