[pygtk] gnome-db and pygtk

Juan Pablo Daniel jpdborgna at gmail.com
Wed Apr 22 01:14:52 WST 2009


Hey! I have a lot of (bad) experience with gnome-db.
I can recommend you to do as we do at work, use python with gtk, use
python db and for showing/editing data use a treeview.
This is the most productive way we found.

Regards, Juan Pablo.

On Tue, Apr 21, 2009 at 12:48 PM, Chris Camacho <chris_camacho at yahoo.com> wrote:
> 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   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>


More information about the pygtk mailing list