[pygtk] grab_add not found [1.99.13]

george young gry@ll.mit.edu
Wed, 30 Oct 2002 09:33:05 -0500


On Tue, 29 Oct 2002 17:09:00 -0300
Christian Reis <kiko@async.com.br> wrote:
> On Tue, Oct 29, 2002 at 02:55:20PM -0500, george young wrote:
> > [pygtk-1.99.13, gtk+-2.1.1]
> > I can't find grab_add in pygtk.  
> > I see references to it in the pygtk source directory, but it doesn't
> > seem to be accessible.  My usual hack doesn't find it:
> > 
> > >>> import gtk
> > >>> import gtk.gdk
> > >>> for w in dir(gtk.gdk):
> 
> Maybe it's gone in pygtk2. It used to be:
>     gtk.grab_add(widget)

I found it.  The interface is just slightly changed:

      mywidget.grab_add()

Thanks,
	George

-- 
 I cannot think why the whole bed of the ocean is
 not one solid mass of oysters, so prolific they seem. Ah,
 I am wandering! Strange how the brain controls the brain!
	-- Sherlock Holmes in "The Dying Detective"