This class represents a column in a wx.dataview.DataViewCtrl.
One wx.dataview.DataViewColumn is bound to one column in the data model to which the wx.dataview.DataViewCtrl has been associated.
An instance of wx.dataview.DataViewRenderer is used by this class to render its data.
Constructs a text column. |
|
Returns the index of the column of the model, which this wx.dataview.DataViewColumn is displaying. |
|
Returns the owning wx.dataview.DataViewCtrl. |
|
Returns the renderer of this wx.dataview.DataViewColumn. |
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
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)
This class represents a column in a DataViewCtrl.
__init__ (self, title, renderer, model_column, width=DVC_DEFAULT_WIDTH, align=ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE)
Constructs a text column.
title (string) – The title of the column.
renderer (wx.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 wx.dataview.DataViewColumnFlags enumeration.
__init__ (self, bitmap, renderer, model_column, width=DVC_DEFAULT_WIDTH, align=ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE)
Constructs a bitmap column.
bitmap (wx.Bitmap) – The bitmap of the column.
renderer (wx.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 wx.dataview.DataViewColumnFlags enumeration.
Returns the index of the column of the model, which this wx.dataview.DataViewColumn is displaying.
int
Returns the owning wx.dataview.DataViewCtrl.
Returns the renderer of this wx.dataview.DataViewColumn.
See also
See GetAlignment
and SetAlignment
See GetMinWidth
and SetMinWidth
See GetModelColumn
See GetRenderer
See IsSortOrderAscending
and SetSortOrder