getting the total number of lines in a tkinter text widget?,int(text_widget.index('end-1c').split('.')[0])