Hi,

I've noticed that a large DrawingArea flickers when it's
scrolled very fast. The script below illustrates it; it shows
a rather large DrawingArea within a ScrolledWindow, and when
the vertical scroller is moved fast, the display of the
DrawingArea flickers noticeably, even when nothing is drawn.

What can I do to get rid of that flicker?

TIA,
C.

----------------------------------

import pygtk
pygtk.require('2.0')
import gtk

win = gtk.Window()
win.connect("destroy", lambda w: gtk.main_quit())
scrollwin = gtk.ScrolledWindow()
scrollwin.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_ALWAYS)
drawing_area = gtk.DrawingArea()
drawing_area.set_size_request(200, 100000*20)
scrollwin.add_with_viewport(drawing_area)
win.add(scrollwin)

win.resize(300,400)
win.show_all()
gtk.main()

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to