[pygtk] Custom Widgets (Movable Containers)

John Stowers john.stowers.lists at gmail.com
Fri Jan 25 07:12:00 WST 2008


> 
> How would I draw the boxes efficiently? When moving the Boxes around, 
> the different borders will unhinge a little (so you can see cracks 
> between them) and I don't want that.
> I have considered drawing the border as a whole and then overlaying the 
> left and right sides with eventboxes to add the current functionality. 
> Is that preferable? What /is/ preferable?
> How can I shape these boxes efficiently? I know that this is answered in 
> the FAQ; I would like to know how to reuse what I have already drawn, as 
> in: "Make this thing transparent, *except* for where I've drawn."
> Any other comments on my code are of course extremely welcome as well.

I have had good success using pygoocanvas. It seems like a lot of work
to do what you are trying to do using pure cairo - a canvas would make
things easier and eliminate the redraw issues you are seeing.

John
> 
> 
> regards,
> /W
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



More information about the pygtk mailing list