On Wed, Nov 05, 2003 at 04:22:16PM +0100, Tobbi wrote:
>    Example:
>     
>    Python:
>    button = gtk.Button()
>    C:
>    gtk_widget_destroy(button)

Actually, the Python counterpart is

    button.destroy()

>    I've found some solution speaking about "_o" field of pyGtk object.

This is only exposed in PyGTK 0.6, which isn't what you're using. We
used to have a pure Python wrapper around the GTK+ object; this is no
longer true.

>    However my object doesn't seem to have such pointer. Also, the
>    descriptions speak about gtk.GtkButton instead of gtk.Button.

Old docs.

>    So, is there a way to get pointer to wrapped pygtk object? 

Do you mean the wrapped GTK+ object? If so, yes, at the C level.

> Is there a way to create pygtk wrapper to already existing gtk object?

Yes, though only at the C level in PyGTK-2.x+.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to