I have a Toplevel, with a Text() widget and a Scrollbar() attached to its
yview. If I fill it up with a bunch of text, and the user scrolls down to the
middle how do I get an index position of a line that is visible? Like I can
.see("100.0") and get to line 100, but how do I find out which lin
Perhaps use window coordinates?
There's a way of indexing with "@x,y" that might work.
http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/text-index.html
https://www.tcl.tk/man/tcl8.4/TkCmd/text.htm#M20
On Wed, Feb 27, 2013 at 2:22 PM, Bob Greschke wrote:
> I have a Toplevel, with a Text() wid
Hi,
On Wed, 27 Feb 2013 14:35:11 -0800
Lion Kimbro wrote:
> Perhaps use window coordinates?
>
> There's a way of indexing with "@x,y" that might work.
>
> http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/text-index.html
> https://www.tcl.tk/man/tcl8.4/TkCmd/text.htm#M20
yes, something like t
Whoa! You guys are pretty smart. This seems to give the "line" number of the
first visible. If text is wrapped in the Text() into a paragraph (multiple
lines) the actual beginning of the "line" may be out of view, but that's no
problem. I missed the "@0,__" thing. Works great!
Thanks!
On