Panel.Session¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Panel.Session(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- classmethod new_from_variant(variant)¶
- Parameters:
variant (
GLib.Variant
) – aGLib.Variant
fromPanel.Session.to_variant
()- Raises:
- Returns:
- Return type:
Creates a new
Panel.Session
from aGLib.Variant
.This creates a new
Panel.Session
instance from a previous session which had been serialized to variant.New in version 1.4.
- append(item)¶
- Parameters:
item (
Panel.SessionItem
) –
- get_item(position)¶
- Parameters:
position (
int
) – the index of the item- Returns:
The
Panel.SessionItem
at position orNone
if there is no item at that position.- Return type:
Gets the item at position.
New in version 1.4.
- insert(position, item)¶
- Parameters:
position (
int
) –item (
Panel.SessionItem
) –
- lookup_by_id(id)¶
- Parameters:
id (
str
) – the id of the item- Returns:
an
Panel.SessionItem
orNone
- Return type:
Gets a session item matching id.
New in version 1.4.
- prepend(item)¶
- Parameters:
item (
Panel.SessionItem
) –
- remove(item)¶
- Parameters:
item (
Panel.SessionItem
) –
- to_variant()¶
- Returns:
- Return type:
Serializes a
Panel.Session
as aGLib.Variant
The result of this function may be passed to
Panel.Session.new_from_variant
() to recreate aPanel.Session
.The resulting variant will not be floating.