Package kiwi :: Package ui :: Module objectlist :: Class ColoredColumn
[frames | no frames]

Type ColoredColumn

        object --+    
                 |    
    object --+   |    
             |   |    
PropertyObject --+    
                 |    
            Column --+
                     |
                    ColoredColumn


I am a column which can colorize the text of columns under certain circumstances. I take a color and an extra function which will be called for each row

Example, to colorize negative values to red:
>>> def colorize(value):
...   return value < 0
...
... ColoredColumn('age', data_type=int, color='red',
...               data_func=colorize),

Method Summary
    Inherited from Column
  as_string(self, data)
  get_attribute(model, attr_name, default, flat, ref, TupleType, MethodType, split, kgetattr_guard, getattr, dummycache, LAMBDA_ACCESS, METHOD_ACCESS, TUPLE_ACCESS, NWR_METHOD_ACCESS, NWR_TUPLE_ACCESS, FAST_METHOD_ACCESS, FAST_TUPLE_ACCESS)
Returns the value associated with the attribute in model named by attr_name. (Static method)
  on_attach_renderer(self, renderer)
  prop_set_data_type(self, data)
  renderer_func(self, renderer, data)
    Inherited from PropertyObject
  do_get_property(self, pspec)
  do_set_property(self, pspec, value)
  get_attribute_names(self)
  is_default_value(self, attr, value)

Class Variable Summary
    Inherited from Column
NoneType cell_data_func = None                                                                  
NoneType on_attach_renderer = None                                                                  
NoneType renderer_func = None                                                                  

Generated by Epydoc 2.1 on Fri Mar 23 15:56:55 2007 http://epydoc.sf.net