[wxPython-users] Auto Scroll to
Josiah Carlson
jcarlson at uci.edu
Wed Jun 7 09:03:21 PDT 2006
"Tim Morton" <tim at preservedwords.com> wrote:
> I use a search method to find and mark a line in a chapter of text and
> display it in an html window, but when the window opens the marked or
> flagged text is often not visable and must be manually scrolled to be
> visable.
>
> I need to have the html window page auto scroll until the desired line
> is visable. I can have the page scroll to an arbitrary line with
> ".Scroll(0, 10)", but I don't know how to have it scroll automatically
> to a flagged or marked line.
If you insert some <a name="line_X"></a> tags in there, and you know all
available lines, you can scroll to the largest previous line available
by using .LoadPage(file/url + '#line_X').
- Josiah
More information about the wxpython-users
mailing list