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

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

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

Definition at line 451 of file grid_column.py.

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

    def default_display_val(self):


Generated by  Doxygen 1.6.0   Back to index