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)
> 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.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk