(text, index)
return res[0] if res else 0
Display height, in lines, of a logical line in a Tk text widget.
Display height, in lines, of a logical line in a Tk text widget.
Display height in lines of a logical line in a Tk text widget .
def get_displaylines(text, index):
    """Display height, in lines, of a logical line in a Tk text widget."""
    res = text.count(f"{index} linestart",
                     f"{index} lineend",
                     "displaylines")
    return res[0] if res else 0
def get_displaylines ( text , index ) : res = text . count ( f"{index} linestart" , f"{index} lineend" , "displaylines" ) return res [ 0 ] if res else 0