Tepl.Panel¶
- Implementations:
Methods¶
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Tepl.Panel¶
- Bases:
- Structure:
- add(widget, name, title, icon_name)¶
- Parameters:
widget (
Gtk.Widget
) – aGtk.Widget
.
- Returns:
a new
Tepl.PanelItem
object.- Return type:
Adds an item to the panel. See
Tepl.PanelItem
for the meaning of the parameters.widget should have its
Gtk.Widget
:visible
property set toTrue
in order to be correctly shown in the panel.A
Tepl.PanelItem
object is returned, which can be used as a parameter to otherTepl.Panel
functions (Tepl.PanelItem
serves as a kind of handle).Note that
Tepl.Panel
also owns a reference to theTepl.PanelItem
. So either store theTepl.PanelItem
for later use, or unref it directly after calling this function.New in version 6.8.
- remove(item)¶
- Parameters:
item (
Tepl.PanelItem
) – theTepl.PanelItem
to remove.
Removes an item from self.
New in version 6.8.
- set_active(item)¶
- Parameters:
item (
Tepl.PanelItem
) – aTepl.PanelItem
.
Sets item to be the one that is currently shown in self.
This is different than setting the
Gtk.Widget
:visible
property toTrue
. AllGtk.Widget
's of a self should have theirGtk.Widget
:visible
property set toTrue
all the time, but only oneTepl.PanelItem
is shown at a time.New in version 6.8.
- do_add(widget, name, title, icon_name) virtual¶
- Parameters:
widget (
Gtk.Widget
) – aGtk.Widget
.
- Returns:
a new
Tepl.PanelItem
object.- Return type:
Adds an item to the panel. See
Tepl.PanelItem
for the meaning of the parameters.widget should have its
Gtk.Widget
:visible
property set toTrue
in order to be correctly shown in the panel.A
Tepl.PanelItem
object is returned, which can be used as a parameter to otherTepl.Panel
functions (Tepl.PanelItem
serves as a kind of handle).Note that
Tepl.Panel
also owns a reference to theTepl.PanelItem
. So either store theTepl.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
) – theTepl.PanelItem
to remove.
Removes an item from panel.
New in version 6.8.
- do_set_active(item) virtual¶
- Parameters:
item (
Tepl.PanelItem
) – aTepl.PanelItem
.
Sets item to be the one that is currently shown in panel.
This is different than setting the
Gtk.Widget
:visible
property toTrue
. AllGtk.Widget
's of a panel should have theirGtk.Widget
:visible
property set toTrue
all the time, but only oneTepl.PanelItem
is shown at a time.New in version 6.8.