(text, index)
return int(float(text_index)) if text_index else None
Return the line number of an index in a Tk text widget.
Return the line number of an index in a Tk text widget.
Return the line number of an index in a Tk text widget .
def get_lineno(text, index):
    """Return the line number of an index in a Tk text widget."""
    text_index = text.index(index)
    return int(float(text_index)) if text_index else None
def get_lineno ( text , index ) : text_index = text . index ( index ) return int ( float ( text_index ) ) if text_index else None