Dazzle.Tree¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.TreeView (98), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Scrollable (9)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.TreeView (15), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.Scrollable (1)
|
|
|
Properties¶
- Inherited:
Gtk.TreeView (18), Gtk.Container (3), Gtk.Widget (39), Gtk.Scrollable (4)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Always expand |
||
r/w |
The context menu to display |
||
r/w |
The root object of the tree |
||
r/w |
The node selection |
||
r/w |
Show Icons |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Gtk.TreeView (15), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Gtk.TreeView (15), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Dazzle.Tree(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- add_builder(builder)¶
- Parameters:
builder (
Dazzle.TreeBuilder
) – ADazzle.TreeBuilder
to add.
Add a builder to the tree.
- expand_to_node(node)¶
- Parameters:
node (
Dazzle.TreeNode
) –
- find_child_node(node, find_func, *user_data)¶
- Parameters:
node (
Dazzle.TreeNode
) – ADazzle.TreeNode
find_func (
Dazzle.TreeFindFunc
) – A callback to locate the child
- Returns:
A
Dazzle.TreeNode
orNone
.- Return type:
Searches through the direct children of node for a matching child. find_func should return
True
if the child matches, otherwiseFalse
.
- find_custom(equal_func, key)¶
- Parameters:
equal_func (
GLib.EqualFunc
) – AGLib.EqualFunc
- Returns:
A
Dazzle.TreeNode
orNone
.- Return type:
Walks the entire tree looking for the first item that matches given equal_func and key.
The first parameter to equal_func will always be key. The second parameter will be the nodes
Dazzle.TreeNode
:item
property.
- find_item(item)¶
- Parameters:
item (
GObject.Object
orNone
) – AGObject.Object
orNone
.- Returns:
A
Dazzle.TreeNode
orNone
.- Return type:
Finds a
Dazzle.TreeNode
with an item property matching item.
- Returns:
A
Gio.MenuModel
orNone
.- Return type:
- get_root()¶
- Returns:
A
Dazzle.TreeNode
orNone
.- Return type:
Retrieves the root node of the tree. The root node is not a visible node in the self, but a placeholder for all other builders to build upon.
- get_selected()¶
- Returns:
- Return type:
Gets the currently selected node in the tree.
- rebuild()¶
- remove_builder(builder)¶
- Parameters:
builder (
Dazzle.TreeBuilder
) – ADazzle.TreeBuilder
to remove.
Removes a builder from the tree.
- scroll_to_node(node)¶
- Parameters:
node (
Dazzle.TreeNode
) –
- Parameters:
context_menu (
Gio.MenuModel
) –
- set_filter(filter_func, *filter_data)¶
- Parameters:
filter_func (
Dazzle.TreeFilterFunc
) – A callback to determien visibility.
Sets the filter function to be used to determine visability of a tree node.
- set_root(node)¶
- Parameters:
node (
Dazzle.TreeNode
) – ADazzle.TreeNode
.
Sets the root node of the
Dazzle.Tree
widget. This is used to build the items within the treeview. The item itself will not be added to the self, but the direct children will be.
- unselect_all()¶
Unselects the currently selected node in the tree.
- do_action(action_group, action_name, param) virtual¶
- do_populate_popup(widget) virtual¶
- Parameters:
widget (
Gtk.Widget
) –
Signal Details¶
- Dazzle.Tree.signals.action(tree, object, p0, p1)¶
- Dazzle.Tree.signals.populate_popup(tree, object)¶
- Signal Name:
populate-popup
- Flags:
- Parameters:
tree (
Dazzle.Tree
) – The object which received the signalobject (
Gtk.Widget
) –
Property Details¶
- Dazzle.Tree.props.always_expand¶
- Name:
always-expand
- Type:
- Default Value:
- Flags:
Always expand
- Name:
context-menu
- Type:
- Default Value:
- Flags:
The context menu to display
- Dazzle.Tree.props.root¶
- Name:
root
- Type:
- Default Value:
- Flags:
The root object of the tree
- Dazzle.Tree.props.selection¶
- Name:
selection
- Type:
- Default Value:
- Flags:
The node selection