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 ?






      
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to