[pygtk] gtk.gdk.Window.get_frame_extents does not recognize Window
objects passed to it
Mystilleef
mystilleef at gmail.com
Fri Sep 30 10:34:12 WST 2005
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
More information about the pygtk
mailing list