On 2010.06.10 19:46:51 +0530, Jeenu V wrote:
> On Thu, Jun 10, 2010 at 4:59 AM, John Stowers
> <[email protected]> wrote:
> > If you are looking for general drawing, click handling, etc then it
> > sounds like you should use a canvas. Check out goocanvas (and its python
> > bindings - http://live.gnome.org/PyGoocanvas)
> 
> Interesting. I was thinking of a cross-platform (between
> Windows/Cygwin and Linux) and this one doesn't seem to have a
> ready-made Windows binary. More over couldn't get that compiled in
> Linux either.
> 
> However, please edify me: can I use PyCairo alone for all my drawings
> and signal handling? I get the feeling that Cairo lies beneath all of
> the packages suggested by folks. I couldn't get a documentation
> reference for PyCairo (or didn't I search enough?)

Yes, of course you can just use PyCairo rather than a canvas.  It's just
more work that way.  I ended up having to go this route at work because
we're stuck on RHEL 5 which has ancient versions of GTK+ and Cairo, and
all the nice new canvases I tried require newer versions.

Last time I checked there were no API docs for PyCairo.  There are a
couple of simple tutorials for it, and then there are the C API docs for
Cairo.  Follow the Python tutorials to learn the basics, and then learn
how to translate the C API docs to Python.  It's annoying to have to do
that, but not really difficult.  If you're unhappy with that situation
then please contribute some PyCairo docs.

-- 
David Ripton    [email protected]
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to