[pygtk] Viewing elaborated report pages on pygtk
John Stowers
john.stowers.lists at gmail.com
Tue Feb 17 21:31:48 WST 2009
On Fri, 2009-02-13 at 19:21 -0200, Jose de Paula Eufrasio Junior wrote:
> So I am working on a simple risk management app [0] using pygtk and
> the fantastic kiwi framework. I got to a point where I MUST show some
> data in a report fashion, and I will surely need many more of those.
> What path should I take? Understand that I need to make that app run
> on linux and windows, so all stuff must be portable or pure python:
>
> - Create PDFs using geraldo [1]
> - Create the reports using HTML/CSS and pisa [2] to generate PDFs
>
> Both options work ok to CREATE the PDFs, te problem is how to show it
> inside a window/view using pyGTK. I tried to research poppler to show
> PDFs but apparently it does not have ports to Win32. The same thing
> with WebKit [3] (that I could use to show the HTML reports), no
> apparent download avaiable for webkit-gtk on Win32.
I like the HTML approach. All good reporting frameworks that I have seen
support HTML output. On linux I would also suggest using webkit to show
this html
If you want to show html on windows, you could create python bindings to
GtkIEEmbed [1] (which is a Gtk widget for embedding internet explorer)
John
[1] http://live.gnome.org/GtkIEEmbed
>
> So, I am open to suggestions. How to show that stuff on pygty? I
> tought about converting the PDF to something that I can put on a
> PixBuff, but apparently PIL can't do that. I am lost :P
>
>
> [0] http://github.com/coredump/crisk/tree/master
> [1] http://geraldo.sourceforge.net/
> [2] http://pypi.python.org/pypi/pisa/
> [3] http://code.google.com/p/pywebkitgtk/
>
> --
> José de Paula Eufrásio Júnior (coredump)
> MCSO, GRC Professional
> http://core.eti.br
>
>
>
> --
> José de Paula Eufrásio Júnior (coredump)
> MCSO, GRC Professional
> http://core.eti.br
> _______________________________________________
> 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