Tepl.PanelSimple¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Tepl.PanelSimple(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
Tepl.PanelSimple
object.- Return type:
New in version 6.11.
- get_active_item()¶
- Returns:
the value of the
Tepl.PanelSimple
:active-item
property.- Return type:
New in version 6.11.
- get_active_item_name()¶
- Returns:
the name of the
Tepl.PanelSimple
:active-item
.- Return type:
A convenience function.
New in version 6.11.
- get_items()¶
- Returns:
all the items of self.
- Return type:
New in version 6.11.
- has_several_items()¶
- Returns:
whether self has more than one
Tepl.PanelItem
.- Return type:
A convenience function. Useful to implement a switcher widget.
New in version 6.11.
- set_active_item_name(name)¶
-
A convenience function that calls
Tepl.Panel.set_active
() with theTepl.PanelItem
named name (if found).New in version 6.11.
- do_add_item(item) virtual¶
- Parameters:
item (
Tepl.PanelItem
) –
- do_changed() virtual¶
- do_remove_item(item) virtual¶
- Parameters:
item (
Tepl.PanelItem
) –
Signal Details¶
- Tepl.PanelSimple.signals.add_item(panel_simple, item)¶
- Signal Name:
add-item
- Flags:
- Parameters:
panel_simple (
Tepl.PanelSimple
) – The object which received the signalitem (
Tepl.PanelItem
) – theTepl.PanelItem
being added.
The
::add-item
signal is emitted when aTepl.PanelItem
needs to be added.It is a
GObject.SignalFlags.RUN_LAST
signal: the item is added by theTepl.PanelSimple
's method handler for this signal.New in version 6.11.
- Tepl.PanelSimple.signals.changed(panel_simple)¶
- Signal Name:
changed
- Flags:
- Parameters:
panel_simple (
Tepl.PanelSimple
) – The object which received the signal
The
::changed
signal is for convenience: it is emitted when theTepl.PanelSimple
::add-item
andTepl.PanelSimple
::remove-item
signals are emitted, and also when theTepl.PanelSimple
:active-item
property changes.It is a
GObject.SignalFlags.RUN_FIRST
signal: the action is already done.This signal is useful if you don’t need the more detailed information on what has changed.
New in version 6.11.
- Tepl.PanelSimple.signals.remove_item(panel_simple, item)¶
- Signal Name:
remove-item
- Flags:
- Parameters:
panel_simple (
Tepl.PanelSimple
) – The object which received the signalitem (
Tepl.PanelItem
) – theTepl.PanelItem
being removed.
The
::remove-item
signal is emitted when aTepl.PanelItem
needs to be removed.It is a
GObject.SignalFlags.RUN_LAST
signal: the item is removed by theTepl.PanelSimple
's method handler for this signal.New in version 6.11.
Property Details¶
- Tepl.PanelSimple.props.active_item¶
- Name:
active-item
- Type:
- Default Value:
- Flags:
The
Tepl.PanelItem
currently shown.New in version 6.11.
- Tepl.PanelSimple.props.active_item_name¶
-
The name of the
Tepl.PanelSimple
:active-item
.New in version 6.11.