Is there any way to get what lines are currently visible in a Tkinter text widget? I'm trying to make a scrollbar. 
Currently I'm trying to coordinate my scroll bar with the other methods of scrolling (ie, the arrow keys and scroll wheel). So that when I scroll with the arrow keys or mouse, my bar scrolls too.
You can get the character (and thus, the line number) at a pixel position using an index of @x,y (eg: @0,0 for the top-left-most visible character). Since you know the width and height of the widget (using the winfo_width and winfo height methods) you can calculate what lines are at the bottom of the widget too.
You can also use the yview method to get the relative portion of the text that is in view (eg: a value of .5 means you are half way through the document)
Visible lines in Tkinter text widget