Table Of Contents

Previous topic

DataViewCellRenderState

Next topic

DataViewColumnFlags

This Page

phoenix_title DataViewColumn

This class represents a column in a DataViewCtrl.

One DataViewColumn is bound to one column in the data model to which the DataViewCtrl has been associated.

An instance of DataViewRenderer is used by this class to render its data.


class_hierarchy Inheritance Diagram

Inheritance diagram for class DataViewColumn

Inheritance diagram of DataViewColumn


method_summary Methods Summary

__init__ Constructs a text column.
GetModelColumn Returns the index of the column of the model, which this DataViewColumn is displaying.
GetOwner Returns the owning DataViewCtrl.
GetRenderer Returns the renderer of this DataViewColumn.

api Class API



class DataViewColumn(SettableHeaderColumn)

This class represents a column in a DataViewCtrl.

Possible constructors:

DataViewColumn(title, renderer, model_column, width=DVC_DEFAULT_WIDTH,
               align=ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE)

DataViewColumn(bitmap, renderer, model_column, width=DVC_DEFAULT_WIDTH,
               align=ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE)

Methods



__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self, title, renderer, model_column, width=DVC_DEFAULT_WIDTH, align=ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE)

Constructs a text column.

Parameters:
  • title (string) – The title of the column.
  • renderer (dataview.DataViewRenderer) – The class which will render the contents of this column.
  • model_column (int) – The index of the model’s column which is associated with this object.
  • width (int) – The width of the column. The DVC_DEFAULT_WIDTH value is the fixed default value.
  • align (Alignment) – The alignment of the column title.
  • flags (int) – One or more flags of the DataViewColumnFlags enumeration.



__init__ (self, bitmap, renderer, model_column, width=DVC_DEFAULT_WIDTH, align=ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE)

Constructs a bitmap column.

Parameters:
  • bitmap (Bitmap) – The bitmap of the column.
  • renderer (dataview.DataViewRenderer) – The class which will render the contents of this column.
  • model_column (int) – The index of the model’s column which is associated with this object.
  • width (int) – The width of the column. The DVC_DEFAULT_WIDTH value is the fixed default value.
  • align (Alignment) – The alignment of the column title.
  • flags (int) – One or more flags of the DataViewColumnFlags enumeration.





GetModelColumn(self)

Returns the index of the column of the model, which this DataViewColumn is displaying.

Return type:int


GetOwner(self)

Returns the owning DataViewCtrl.

Return type: DataViewCtrl


GetRenderer(self)

Returns the renderer of this DataViewColumn.

Return type: DataViewRenderer

Properties



ModelColumn

See GetModelColumn



Owner

See GetOwner



Renderer

See GetRenderer