[pygtk] python, libglade, GtkXmHTML

James Henstridge james@daa.com.au
Tue, 18 Jul 2000 01:03:25 +0800 (WST)

On Mon, 17 Jul 2000, Martijn Faassen wrote:

> Hi there,
> I'm not sure if I'm on the right list here for my question. I've
> been playing with Glade, the python bindings to libglade and to 
> gtk. Actually I just started playing with all of yesterday and I already
> have a mini application working; kudos to everyone involved! Great stuff.
> I ran into one problem with libglade though; I wanted to use
> GtkXmHTML to display simple HTML. Unfortunately it doesn't seem to be
> supported by default by Glade, so I can't add it there. I tried two
> approaches:
>   * do a manual .add() of a GtkXmHTML instance to a widget in my 
>     libglade built window.
>     This doesn't seem to do anything. Can't even add buttons or labels
>     this way. Is this due to the use of libglade? It seemed to work in
>     PyGTK proper.

This should work.  If you have some container widget in the glade file you
should be able to add a GtkXmHTML widget.  You did show() the XmHTML
widget, didn't you?

>   * I saw a reference to the CustomWidget (which is in glade). You're
>     supposed to give a build function, and apparently 'gmodule' will
>     be involved. I couldn't figure this out and I didn't find any
>     Python bindings for this anyway, so I ran into a wall here too.

This doesn't currently work currently.  It may in future libglade bindings

> Does anyone have any suggestions for using GtkXmHTML with a libglade-built
> user interface (in Python)?
> Regards,
> Martijn


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