def boolean(s):
    if s.lower() in ('', '0', 'no', 'off', 'false'): return 0
    else: return 1
Test whether a string is a Tk boolean, without error checking.
dataset/ETHPy150Open francelabs/datafari/windows/python/Tools/webchecker/tktools.py/boolean