Tepl.PanelContainer

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Tepl.Panel Tepl.Panel GObject.GInterface->Tepl.Panel GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Tepl.PanelContainer Tepl.PanelContainer Gtk.Bin->Tepl.PanelContainer Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container Tepl.Panel->Tepl.PanelContainer

Subclasses:

None

Methods

Inherited:

Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Tepl.Panel (3)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new ()

get_active_item ()

get_active_item_name ()

get_items ()

has_several_items ()

set_active_item_name (name)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Tepl.Panel (3)

Properties

Inherited:

Gtk.Container (3), Gtk.Widget (39)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Short Description

changed

The ::changed signal is emitted when: * A Tepl.PanelItem is added or removed from container.

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent

Gtk.Bin

r

Class Details

class Tepl.PanelContainer(**kwargs)
Bases:

Gtk.Bin, Tepl.Panel

Abstract:

No

Structure:

Tepl.PanelContainerClass

classmethod new()
Returns:

a new Tepl.PanelContainer.

Return type:

Tepl.PanelContainer

New in version 6.8.

get_active_item()
Returns:

the Tepl.PanelItem currently shown in self.

Return type:

Tepl.PanelItem or None

New in version 6.8.

get_active_item_name()
Returns:

the name of the Tepl.PanelItem currently shown in self.

Return type:

str or None

New in version 6.8.

get_items()
Returns:

all the items of self.

Return type:

[Tepl.PanelItem]

New in version 6.8.

has_several_items()
Returns:

whether self has more than one Tepl.PanelItem.

Return type:

bool

Convenience function. Useful to implement a switcher widget.

New in version 6.8.

set_active_item_name(name)
Parameters:

name (str) – a name.

Calls Tepl.Panel.set_active() with the Tepl.PanelItem named name (if found).

New in version 6.8.

Signal Details

Tepl.PanelContainer.signals.changed(panel_container)
Signal Name:

changed

Flags:

RUN_FIRST

Parameters:

panel_container (Tepl.PanelContainer) – The object which received the signal

The ::changed signal is emitted when:

New in version 6.8.