Class s.r.b.t.TableColumn:

Part of stoqlib.reporting.base.tables View In Hierarchy

Known subclasses: stoqlib.reporting.base.tables.ObjectTableColumn

No class docstring
Method __init__ Column class for ColumnTable
Method get_translated_alignment Undocumented
Method get_string_data Returns the column value. The value can be returned through
Method __repr__ Undocumented
Method update_style Apply the column style.
def __init__(self, name=None, width=None, format_string=None, format_func=None, truncate=False, expand=False, align=LEFT, virtual=False, style='TableCell'):
Column class for ColumnTable
ParametersnameThe column name
(type: str )
widthThe column width
(type: float )
format_stringA string that will be used to format the column value.
(type: str )
format_funcA function that will be called to format the column value
(type: )
truncateMust be the string be truncate if its length was greater than the colum width?
(type: bool )
expandMust this column expand?
(type: bool )
virtualIf True, then the column *omit* its separator with the last column and its header will be expanded with the one of last column.
(type: bool )
styleThe cell style, defaults to 'TableCell'.
(type: str )
def get_translated_alignment(self):
Undocumented
def get_string_data(self, value):
Returns the column value. The value can be returned through accessors defined by the user.
def __repr__(self):
Undocumented
def update_style(self, style, idx, has_summary_row=False, table_line=TABLE_LINE):
Apply the column style.
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.