[pygtk] gnome-db and pygtk

Chris Camacho chris_camacho at yahoo.com
Tue Apr 21 23:48:41 WST 2009


I've used ctypes with xlib before and its a really nice system for using C libs

So I thought I'd look and the gnome-db library (i have the connection dialog working
and seem to be making a data model ok...)

however I'm having trouble using ctypes along side pygtk

take this C code

        grid = gnome_db_grid_new (data_model);
        g_object_unref (data_model);
        gtk_container_add (GTK_CONTAINER (window), grid);

taken from http://www.gnome-db.org/CodeExampleGrid
(yes its that close to working!)

gnome_db_grid_new creates a custom gtk widget and returns its id
however if I try using this (an int) with a pygtk window its not going to
be able to add it!

basically is there a way to create a
 pygtk widget object from a gtk ID ?






      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090421/41d8dba9/attachment.htm 


More information about the pygtk mailing list