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.
__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. |
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)
Overloaded Implementations:
__init__ (self, title, renderer, model_column, width=DVC_DEFAULT_WIDTH, align=ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE)
Constructs a text column.
Parameters: |
|
---|
__init__ (self, bitmap, renderer, model_column, width=DVC_DEFAULT_WIDTH, align=ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE)
Constructs a bitmap column.
Parameters: |
|
---|
Returns the index of the column of the model, which this DataViewColumn is displaying.
Return type: | int |
---|
Returns the owning DataViewCtrl.
Return type: | DataViewCtrl |
---|
Returns the renderer of this DataViewColumn.
Return type: | DataViewRenderer |
---|
See also
See GetModelColumn
See GetRenderer