[pygtk] gtk.ScrolledWindow and gtk.Layout
Le Roux Bodenstein
lerouxb at gmail.com
Tue Nov 20 05:05:23 WST 2007
Hello
I'm trying to Use a gtk.ScrolledWindow with a gtk.Layout inside it and
then get my expose method called every time the gtk.Layout gets
scrolled (so that I can draw only the visible portion), but either I
can't figure out which signal to respond to or I'm doing something
wrong, because I tried set-scroll-adjustments and scroll-event on the
layout and scroll-child and scroll-event on the ScrolledWindow. Oddly
enough the set-scroll-adjustments callback only gets called when I
close the window/exit the program. The scroll-child callback gets
called whenever you scroll using the keyboard.
I built a little test interface using glade, so don't want to flood
the list with all the useless XML, but it really isn't that
complicated.
Is there something else I need to do? I've checked everything under
Events in the "Common" tab for both widgets out of desperation and it
didn't help either.
All I really want to do is trigger an expose (I don't want it to
scroll/draw automatically)
Btw.. according to this
http://mail.gnome.org/archives/gtk-app-devel-list/2000-September/msg00085.html
(where Havoc Pennington gives someone advice) I need to call
gtk_signal_connect_after() or gtk_signal_emit_stop_by_name(), but I
don't know how that translates to PyGTK and I'm not even sure if it is
relevant.
Le Roux
More information about the pygtk
mailing list