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.VariantfromPanel.Session.to_variant()- Raises:
 - Returns:
 - Return type:
 
Creates a new
Panel.Sessionfrom aGLib.Variant.This creates a new
Panel.Sessioninstance 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.SessionItemat position orNoneif 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.SessionItemorNone- 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.Sessionas aGLib.VariantThe result of this function may be passed to
Panel.Session.new_from_variant() to recreate aPanel.Session.The resulting variant will not be floating.