[pygtk] TextView: move-viewport
José María García Pérez
josemaria.alkala at gmail.com
Mon Jul 5 06:02:46 WST 2010
Dear all,
I am trying to detect when a TextView is scrolled (even by a few pixeles)
(just to feed a custom made widget). To do so, I have created a a TextView()
and added to a ScrolledWindow. I have tried to connect TextView's signal
"move-viewport" and I have tried ScrolledWindow "scroll-child", but it seems
not to work (might this be a bug?).
I have tried Widget's "scroll-event" and it seems to detect only when I use
the mouse-wheel.
The only way I can make it work is by using "expose-event", but it seems to
rewrite too often my custom made widget making the refresh visible.
So:
1. Is there a bug on "move-viewport" and/or "scroll-child"?
2. Any suggestion about how could I improve this scroll detection?
Kind regards,
José M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20100705/9af10f93/attachment.htm
More information about the pygtk
mailing list