I have a Tkinter Text
widget, and I'd like to know how many lines it contains.
I know of the text.cget("height")
method, however that only tells me how many lines are displayed. I'd like to know how many lines there are total.
I'm using this info to try to make my own custom scrollbar, so any help would be much appreciated.