Tepl.Panel

g GObject.GInterface GObject.GInterface Tepl.Panel Tepl.Panel GObject.GInterface->Tepl.Panel

Implementations:

Tepl.PanelContainer

Methods

add (widget, name, title, icon_name)

remove (item)

set_active (item)

Virtual Methods

do_add (widget, name, title, icon_name)

do_remove (item)

do_set_active (item)

Properties

None

Signals

None

Fields

None

Class Details

class Tepl.Panel
Bases:

GObject.GInterface

Structure:

Tepl.PanelInterface

add(widget, name, title, icon_name)
Parameters:
Returns:

a new Tepl.PanelItem object.

Return type:

Tepl.PanelItem or None

Adds an item to the panel. See Tepl.PanelItem for the meaning of the parameters.

widget should have its Gtk.Widget :visible property set to True in order to be correctly shown in the panel.

A Tepl.PanelItem object is returned, which can be used as a parameter to other Tepl.Panel functions (Tepl.PanelItem serves as a kind of handle).

Note that Tepl.Panel also owns a reference to the Tepl.PanelItem. So either store the Tepl.PanelItem for later use, or unref it directly after calling this function.

New in version 6.8.

remove(item)
Parameters:

item (Tepl.PanelItem) – the Tepl.PanelItem to remove.

Removes an item from self.

New in version 6.8.

set_active(item)
Parameters:

item (Tepl.PanelItem) – a Tepl.PanelItem.

Sets item to be the one that is currently shown in self.

This is different than setting the Gtk.Widget :visible property to True. All Gtk.Widget's of a self should have their Gtk.Widget :visible property set to True all the time, but only one Tepl.PanelItem is shown at a time.

New in version 6.8.

do_add(widget, name, title, icon_name) virtual
Parameters:
Returns:

a new Tepl.PanelItem object.

Return type:

Tepl.PanelItem or None

Adds an item to the panel. See Tepl.PanelItem for the meaning of the parameters.

widget should have its Gtk.Widget :visible property set to True in order to be correctly shown in the panel.

A Tepl.PanelItem object is returned, which can be used as a parameter to other Tepl.Panel functions (Tepl.PanelItem serves as a kind of handle).

Note that Tepl.Panel also owns a reference to the Tepl.PanelItem. So either store the Tepl.PanelItem for later use, or unref it directly after calling this function.

New in version 6.8.

do_remove(item) virtual
Parameters:

item (Tepl.PanelItem) – the Tepl.PanelItem to remove.

Removes an item from panel.

New in version 6.8.

do_set_active(item) virtual
Parameters:

item (Tepl.PanelItem) – a Tepl.PanelItem.

Sets item to be the one that is currently shown in panel.

This is different than setting the Gtk.Widget :visible property to True. All Gtk.Widget's of a panel should have their Gtk.Widget :visible property set to True all the time, but only one Tepl.PanelItem is shown at a time.

New in version 6.8.