RB.PropertyView¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.ScrolledWindow (33), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.ScrolledWindow (2), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|
||
r/w/co |
is a drag source |
||
r/w/co |
|||
r/w |
|||
r/w/co |
title |
Style Properties¶
- Inherited:
Signals¶
Name |
Short Description |
---|---|
Emitted when the set of selected property values changes. |
|
Emitted when a row in a property view is activated by double clicking. |
|
Emitted when an individual property value becomes selected. |
|
Emitted when the selection is reset. |
|
Emitted when a popup menu should be displayed for the property view. |
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class RB.PropertyView(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(db, propid, title)¶
- Parameters:
db (
RB.RhythmDB
) –RB.RhythmDB
instancepropid (
int
) – property ID to be displayed in the property viewtitle (
str
) – title of the property view
- Returns:
new property view instance
- Return type:
Creates a new
RB.PropertyView
displaying the specified property.
- append_column_custom(column)¶
- Parameters:
column (
Gtk.TreeViewColumn
) – aGtk.TreeViewColumn
to append to the view
Appends a custom created column to the view.
- get_model()¶
- Returns:
property model
- Return type:
Returns the
RB.RhythmDBPropertyModel
backing the view; no reference is taken
- get_num_properties()¶
- Returns:
number of properties
- Return type:
Returns the number of property values present in the view.
- get_selection()¶
- Returns:
list of selected values
- Return type:
[
str
]
Returns a
GLib.List
containing the selected property values. The list must be freed by the caller.
- reset()¶
Clears the selection in the property view.
- set_column_visible(visible)¶
- Parameters:
visible (
bool
) – whether the property column should be visible
Sets the visibility of the property column.
- set_model(model)¶
- Parameters:
model (
RB.RhythmDBPropertyModel
) – the newRB.RhythmDBPropertyModel
for the property view
Replaces the model backing the property view.
- set_search_func(func, *func_data)¶
- Parameters:
func (
Gtk.TreeViewSearchEqualFunc
) – tree view search function to use for this viewfunc_data (
object
orNone
) – data to pass to the search function
Sets the compare function for the interactive search capabilities. The function must return
False
when the search key string matches the row it is passed.
- set_selection(vals)¶
- Parameters:
vals ([
str
]) – the values to be selected
Replaces the selection in the property view. All values in the list that are present in the view will be selected, and the view will be scrolled to show the last value selected.
- set_selection_mode(mode)¶
- Parameters:
mode (
Gtk.SelectionMode
) – the newGtk.SelectionMode
for the property view
Sets the selection mode (single or multiple) for the property view> The default selection mode is single.
- do_selection_reset() virtual¶
- do_show_popup() virtual¶
Signal Details¶
- RB.PropertyView.signals.properties_selected(property_view, properties)¶
- Signal Name:
properties-selected
- Flags:
- Parameters:
property_view (
RB.PropertyView
) – The object which received the signalproperties (
object
orNone
) – a list containing the selected property values
Emitted when the set of selected property values changes. This is only emitted for multiple selection property views. For single-selection views, use the property-selected signal.
- RB.PropertyView.signals.property_activated(property_view, name)¶
- Signal Name:
property-activated
- Flags:
- Parameters:
property_view (
RB.PropertyView
) – The object which received the signalname (
str
) – the property value that was activated
Emitted when a row in a property view is activated by double clicking.
- RB.PropertyView.signals.property_selected(property_view, name)¶
- Signal Name:
property-selected
- Flags:
- Parameters:
property_view (
RB.PropertyView
) – The object which received the signalname (
str
) – the property value that has been selected
Emitted when an individual property value becomes selected. This is only emitted for single-selection property views. For multiple-selection views, use the properties-selected signal.
- RB.PropertyView.signals.property_selection_reset(property_view)¶
- Signal Name:
property-selection-reset
- Flags:
- Parameters:
property_view (
RB.PropertyView
) – The object which received the signal
Emitted when the selection is reset. At this point, no property values are selected.
- RB.PropertyView.signals.show_popup(property_view)¶
- Signal Name:
show-popup
- Flags:
- Parameters:
property_view (
RB.PropertyView
) – The object which received the signal
Emitted when a popup menu should be displayed for the property view. The source containing the property view should connect a handler to this signal that * displays an appropriate popup.
Property Details¶
- RB.PropertyView.props.db¶
- Name:
db
- Type:
- Default Value:
- Flags:
RB.RhythmDB
instance
- RB.PropertyView.props.draggable¶
- Name:
draggable
- Type:
- Default Value:
- Flags:
Whether the property view acts as a data source for drag and drop operations.
- RB.PropertyView.props.prop¶
- Name:
prop
- Type:
- Default Value:
- Flags:
The property that is displayed in this view
- RB.PropertyView.props.property_model¶
- Name:
property-model
- Type:
- Default Value:
- Flags:
The
RB.RhythmDBPropertyModel
backing the view.
- RB.PropertyView.props.title¶
- Name:
title
- Type:
- Default Value:
''
- Flags:
The title displayed in the header of the property view