[pygtk] adding gdk functions

James Henstridge james@daa.com.au
Mon, 24 Jul 2000 00:30:27 +0800 (WST)


On Sat, 22 Jul 2000, Dave Reed wrote:

> 
> First, thanks for making pygtk! It's much nicer than programming gtk
> apps with C/C++
> 
> I'm very new to pygtk so I may be way off base. . . 
> 
> It appears to me that not all the gdk functions are yet part of
> pygtk.  I'd like to use gdk_image_get and a few others.  Is it part of
> pygtk and I just don't know how to get at it or are there some gdk
> functions that have not been added yet?
> 
> Looking at the generate/gtk.defs file I wonder if I just add
> 
> (define-func gdk_image_get
> 
> along with the prototype info, I can then rebuild pygtk and get access
> to them.  Is this correct?  Is the gtk.defs file automatically
> generated or is it just a matter of people adding the info to the
> gtk.defs file and I'm the first to want to use the gdk_image get
> function?
> 
> Other suggestions?

Well, the gtk+-2.0 based pygtk will have much better support for the gdk
types.  As they are all GObjects, the same code generator as used for gtk
objects can be used to produce nice object oriented wrappers.

> 
> Thanks,
> Dave

James.

-- 
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/