[pygtk] [Fwd: Using cairo to shape windows]

Natan Zohar nzohar1 at binghamton.edu
Mon Jun 5 00:59:00 WST 2006


I have changed it to be a simple window with a HScale slider in the
middle to dictate how round the edges are, so that it might actually be
a demonstratable application, as per pachi's request. Additionally, the
window when resized will scale and maintain the rounding of the corner.

Natan

>On Sun, 04 Jun 2006 15:29:12 +0100
>"Gustavo J. A. M. Carneiro" <gjc at inescporto.pt> wrote:

>   I have modified it slightly in order to expunge the last traces of
> gdk.GC and gdk.draw_* APIs, which are now deprecated.
> 
>   Cheers.
> 
> Sáb, 2006-06-03 às 20:13 -0300, Johan Dahlin escreveu:
> > anexo mensagem de e-mail (Using cairo to shape windows)
> > > ------ Mensagem Reencaminhada ------
> > > De: Natan Zohar <nzohar1 at binghamton.edu>
> > > Para: pygtk-web at async.com.br
> > > Assunto: Using cairo to shape windows
> > > Data: Sat, 03 Jun 2006 16:31:50 -0400
> > > Aplicação de Email: Sylpheed-Claws 2.2.0 (GTK+ 2.8.17;
> > > i686-pc-linux-gnu)
> > > 
> > > Hi,
> > > 
> > >     pachi (from #pygtk on GIMPNet) told me to shoot along an
> > > email over here with some sample pygtk code for shaping windows
> > > (as there isn't much out there about it). Attached is some code
> > > for shaping a window into a rounded rectangle and (commented out)
> > > a circle, that I wrote. I hope it helps you.
> > > 
> > > Natan Zohar
> > _______________________________________________
> > 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/
> -- 
> Gustavo J. A. M. Carneiro
> <gjc at inescporto.pt> <gustavo at users.sourceforge.net>
> The universe is always one step beyond logic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shapedwindowslider.py
Type: text/x-python
Size: 2982 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060604/36bafc65/shapedwindowslider.py


More information about the pygtk mailing list