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.PanelSimpleobject.- Return type:
New in version 6.11.
- get_active_item()¶
- Returns:
the value of the
Tepl.PanelSimple:active-itemproperty.- 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.PanelItemnamed 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.PanelItembeing added.
The
::add-itemsignal is emitted when aTepl.PanelItemneeds to be added.It is a
GObject.SignalFlags.RUN_LASTsignal: 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
::changedsignal is for convenience: it is emitted when theTepl.PanelSimple::add-itemandTepl.PanelSimple::remove-itemsignals are emitted, and also when theTepl.PanelSimple:active-itemproperty changes.It is a
GObject.SignalFlags.RUN_FIRSTsignal: 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.PanelItembeing removed.
The
::remove-itemsignal is emitted when aTepl.PanelItemneeds to be removed.It is a
GObject.SignalFlags.RUN_LASTsignal: 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.PanelItemcurrently 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.