El Fri, Jan 19, 2001 at 07:08:05AM -0600, Charles G Waldman dijo:
> Eduardo Ferro writes:
>
> > How can i draw some lines at the root_window?
>
> Here is a snippet of code I used to draw a grid on the
> root window:
>
> from gtk import _root_window, draw_line
> rw=_root_window()
> cm=rw.colormap
> yellow=cm.alloc("yellow")
> rgc=rw.new_gc()
> rgc.foreground=yellow
> rgc.line_width=1
> w = rw.width
> h = rw.height
> for x in range(0,w,128):
> draw_line(rw,rgc,x,0,x,h)
> for y in range(0,h,128):
> draw_line(rw,rgc,0,y,w,y)
>
Thanks for the info
>
> > How can i connect a evnent handler to the exposure event??
>
> I'm not entirely sure but I think this may be impossible, since root
> window events are handled by the window manager.
But without the events it isn' t very usefull paint nothing at the
root window. Any case i think that it should be possible because some
C programs like root-tail do it, they repaint its output when some
window erase it
Anyway thanks a lot
--
Hasta otra!
Eduardo Ferro Aldama [EMAIL PROTECTED]
(Linux User 58390-44335) [EMAIL PROTECTED]
La web del GLUB http://glub.ehu.es/
Grupo Linux Usuarios de Bizkaia
Mecagüenlap#&%$$... se ha cagao el ratón en la almohadilla!!
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk