def line_width( segs ):
    sc = 0
    seglist = segs
    if segs and len(segs[0])==2 and segs[0][1]==None:
        seglist = segs[1:]
    for s in seglist:
        sc += s[0]
    return sc
Return the screen column width of one line of a text layout structure.
dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/text_layout.py/line_width