[cairo] tl.geodrawing package python

Andrea Canciani ranma42 at gmail.com
Sun May 1 23:04:10 PDT 2011


On Sun, May 1, 2011 at 4:15 PM, Mahsa Ghasemi
<m.ghasemi at student.unimelb.edu.au> wrote:
> Hi,
>
> Has anyone ever used tl.geodrawing package. It provides developer with
> geographic pygtk drawing area. I can create a cairo surface and draw points
> with their coordinates with this package and then save it in a png file but
> I cannot display the result in a GTK window.

Please have a look at http://cairographics.org/quickframework/

>
> Even if I d be able to do this,Can I write a function to get coordinates by
> clicking on my darwing area?

Have a look at http://cairographics.org/hittestpython/
This shows how to do hit testing, but also shows you how to
capture button events.

Andrea


More information about the cairo mailing list