gtk.CellViewa widget displaying a single row of a gtk.TreeModel
(new in PyGTK 2.6).Synopsisgtk.CellViewgtk.Widgetgtk.CellLayoutgtk.CellViewget_cell_renderersget_displayed_rowget_modelget_size_of_rowpathrequisitionset_background_colorcolorset_displayed_rowpathset_modelmodelFunctionsgtk.cell_view_new_with_texttextgtk.cell_view_new_with_markupmarkupgtk.cell_view_new_with_pixbufpixbufAncestry+-- gobject.GObject
+-- gtk.Object
+-- gtk.Widget
+-- gtk.CellView
Implemented Interfacesgtk.CellView
implements
gtk.Buildable
gtk.CellLayout
gtk.CellView Propertiesgtk.Object Propertiesgtk.Widget Properties
"background"WriteThe background color as a string. Default value:
None"background-gdk"Read-WriteThe background color as a gtk.gdk.Color."background-set"Read-WriteIf True, use the "background-gdk"
property to set the background color."model"Read-WriteThe model for cell view. Available in GTK+ 2.10 and
above.
gtk.CellView Style Propertiesgtk.Widget Style Propertiesgtk.CellView Signal Prototypesgobject.GObject Signal Prototypesgtk.Object Signal Prototypesgtk.Widget Signal PrototypesDescriptionThis widget is available in PyGTK 2.6 and above.The gtk.CellView is a
widget that displays one row of a gtk.TreeModel. gtk.CellView
implements the gtk.CellLayout
interface that provides for the addition and management of gtk.CellRenderer
objects.Constructorgtk.CellViewReturns :a new gtk.CellViewThis constructor is available in PyGTK 2.6 and above.Creates a new gtk.CellView
widget.Methodsgtk.CellView.get_displayed_rowget_modelReturns :a gtk.TreeModel
used or None.
This method is available in PyGTK 2.16 and above.
The get_model() method returns the model for cell_view.
If no model is used None is returned.
gtk.CellView.set_modelset_modelmodelmodel :a gtk.TreeModel or NoneThis method is available in PyGTK 2.6 and above.The set_model() method sets the gtk.TreeModel
used by the cell view to that specified by model. If
model is None the cell view's
model will be unset.gtk.CellView.set_displayed_rowset_displayed_rowpathpath :a tree path or None to unset
the rowThis method is available in PyGTK 2.6 and above.The set_displayed_row() method sets the
row of the model that is currently displayed to the path specified by
path. If path is
None the display row will be unset, and the contents of
the cell view "stick" at their last value. This is not normally a desired
result, but may be a needed intermediate state if say, the model for the
cell view becomes temporarily empty.gtk.CellView.get_displayed_rowget_displayed_rowReturns :the path of the currently displayed row in the
cell view's modelThis method is available in PyGTK 2.6 and above.The get_displayed_row() method returns
the path of the currently displayed row as set by the set-displayed_row()
method.gtk.CellView.get_size_of_rowget_size_of_rowpathpath :the path of a rowReturns :a gtk.Requisition
containing the required size dataThis method is available in PyGTK 2.6 and above.The get_size_of_row() method returns a
gtk.Requisition
containing the size required for displaying the row with the tree path
specified by path.gtk.CellView.set_background_colorset_background_colorcolorcolor :This method is available in PyGTK 2.6 and above.The set_background_color() method sets
the background color of the cell view to the gtk.gdk.Color
specified by color.gtk.CellView.get_cell_renderersget_cell_renderersReturns :a list of the gtk.CellRenderer
objects of the cell view.This method is available in PyGTK 2.6 and above.This method is deprecated since PyGTK 2.18 and should not be used in newly-written code.
Use "gtk.CellLayout.get_cells()"
instead.The get_cell_renderers() method returns
a list containing the gtk.CellRenderer
objects used by the cell view.Functionsgtk.cell_view_new_with_textgtk.cell_view_new_with_texttexttext :a stringReturns :a new gtk.CellViewThis function is available in PyGTK 2.6 and above.The gtk.cell_view_new_with_text() function
creates a new gtk.CellView with
a gtk.CellRendererText
displaying the string specified by text.gtk.cell_view_new_with_markupgtk.cell_view_new_with_markupmarkupmarkup :a string containing Pango markup to be
displayed.Returns :a new gtk.CellViewThis function is available in PyGTK 2.6 and above.The gtk.cell_view_new_with_markup()
function creates a new gtk.CellView with
a gtk.CellRendererText
displaying the Pango markup specified by
markup.gtk.cell_view_new_with_pixbufgtk.cell_view_new_with_pixbufpixbufpixbuf :a gtk.gdk.PixbufReturns :a new gtk.CellViewThis function is available in PyGTK 2.6 and above.The gtk.cell_view_new_with_pixbuf()
function creates a new gtk.CellView with
a gtk.CellRendererPixbuf
displaying the gtk.gdk.Pixbuf
specified by pixbuf.