Hello,

I'm having problems using the gtk.gdk.Window.get_frame_extents
function. First of all, it seems the pygtk manual has an
error with regards to whether or not it takes an argument.

The GTK+ manual and the errors I'm getting from the terminal
suggests it takes a gtk.gdk.Window argument. The pygtk
manual suggests otherwise.

The problem I am having, however, stems from the fact that
I am passing an object to get_frame_extents. This object is
inherited from gtk.Window. So technically speaking, the
object is also a gtk.Window.

However, I get this error when I pass the object as an
argument to get_frame_extents:

 print Window.get_frame_extents(self)
TypeError: descriptor 'get_frame_extents' requires a 'gtk.gdk.Window'
object but received a 'Editor'

Once again, self is an Editor object that inherits from
gtk.Window. Is there a difference between a gtk.gdk.Window and a
gtk.Window? I'm I using the function incorrectly? Or have I
just totally missed the point. Your help is appreciated.

Thanks

http://www.pygtk.org/pygtk2reference/class-gdkwindow.html#method-gdkwindow--get-frame-extents

http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#gdk-window-get-frame-extents
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to