Logo Search packages:      
Sourcecode: quickly-widgets version File versions  Download package

def widgets::grid_column::CheckColumn::real_val (   self,
  val 
)

use conventions to infer the boolean value to use when the value
is not a boolean type.
    

Definition at line 473 of file grid_column.py.

00473                            :
        """use conventions to infer the boolean value to use when the value
        is not a boolean type.
    
        """
        if type(val) is type(True):
            return val
        elif type(val) is type("a"):
            if val.lower() == "yes":
                return True
            else:
                return False
        else:
            return bool(val)
            return bool(val)


Generated by  Doxygen 1.6.0   Back to index