Get the authors to register it as a boxed type. Cheers,
Matt On Wed, Nov 28, 2001 at 02:23:31PM -0600, Skip Montanaro wrote: > > James> If you want to see an example of distributing a binding outside > James> of the pygtk module, take a look at the gnome-python package. It > James> has been set up to build separately. > > Matt> for example, when I wrapped atk: > ... > Matt> The generic rule in pygtk cvs will handle the autogenerating. > > Thanks to Matt & James for the tutorial on wrapping Gtk-related libraries. > I can now successfully display an HTML document in Python code using the > GtkHtml2 widget. > > I have so far only wrapped the HtmlDocument and HtmlView classes. I'm onto > the next step: displaying embedded images. I'm unsure which route to take > to get there. The HtmlDocument class supports a request-url signal. When I > connect to it, my signal handler gets three arguments, a document, a url, > and an HtmlStream*. The simple example that comes with GtkHtml2 doesn't do > anything with it, but I presume I am supposed to write the image data I > retrieve to the stream. Since I have yet to wrap this class, I don't > actually see an HtmlStream*, but a PyCObject. HtmlStream is not a subclass > of GObject, so I'm unclear how I am supposed to wrap it so that it is > automagically mapped to the right kind of Python object. > > Any suggestions? > > Thx, > > Skip > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk