[pygtk] override virtual gtk methods (gobject innards)

2004-05-20 Thread Stephen Kennedy
I've seen examples where gtk methods are overridden using the __gsignals__ attribute. Is it possible to override arbitrary virtual gtk methods which are not signals? For instance GladeXML has a virtual function lookup_widget which I expected to be able to override thus class Foo(gtk.glade.XML):

Re: [pygtk] How to get the XID of a GdkDrawable?

2004-05-20 Thread John Hunter
> "welko" == welko <[EMAIL PROTECTED]> writes: welko> Hello, does anybody know how can I get the XID of a welko> GdkDrawable using pyGTK? I do this if sys.platform=='win32': win_id = self.widget.window.handle else: win_id = sel

[pygtk] How to get the XID of a GdkDrawable?

2004-05-20 Thread welko
Hello, does anybody know how can I get the XID of a GdkDrawable using pyGTK? Or how can I check if the following function is available in pyGTK? XID gdk_x11_drawable_get_xid (GdkDrawable *drawable); (declared in gdk/gdkx.h) Best regards Velko