[pygtk] TextView and expose-event

Gian Mario Tagliaretti gianmt at gnome.org
Thu Feb 7 05:18:57 WST 2008


On Feb 6, 2008 9:04 PM, Gian Mario Tagliaretti <gianmt a gnome.org> wrote:

> If you can provide a small example showing your problem will be great.

I haven't finished my message but I've hit send, sorry.

you probably want to set the pixmap in the expose event as you said,
something like:

def on_expose(widget, event):
    w = widget.get_window(gtk.TEXT_WINDOW_TEXT)
    w.set_back_pixmap(pixmap, False)

textview.connect("expose-event", on_expose)

cheers
-- 
Gian Mario Tagliaretti


More information about the pygtk mailing list