Tepl.PanelItem¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
|||
r/w/co |
|||
r/w/co |
|||
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Tepl.PanelItem(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(widget, name, title, icon_name, position)¶
- Parameters:
widget (
Gtk.Widget) – aGtk.Widget.name (
str) – the name.position (
int) – the position.
- Returns:
a new
Tepl.PanelItemobject.- Return type:
Creates a new
Tepl.PanelItemobject.See the properties for the meaning of the parameters.
New in version 6.11.
- compare(b)¶
- Parameters:
b (
Tepl.PanelItem) – aTepl.PanelItem.- Returns:
the usual return value for a
GLib.CompareFunc.- Return type:
A
GLib.CompareFuncthat takes into account theTepl.PanelItem:positionproperty in priority, and falls back to theTepl.PanelItem:titleproperty if two items have the same position.New in version 6.11.
- compare_by_title(b)¶
- Parameters:
b (
Tepl.PanelItem) – aTepl.PanelItem.- Returns:
the usual return value for a
GLib.CompareFunc.- Return type:
A
GLib.CompareFuncthat takes into account only theTepl.PanelItem:titleproperty.New in version 6.8.
- get_icon_name()¶
- Returns:
the value of the
Tepl.PanelItem:icon-nameproperty.- Return type:
New in version 6.8.
- get_name()¶
- Returns:
the value of the
Tepl.PanelItem:nameproperty.- Return type:
New in version 6.8.
- get_position()¶
- Returns:
the value of the
Tepl.PanelItem:positionproperty.- Return type:
New in version 6.11.
- get_title()¶
- Returns:
the value of the
Tepl.PanelItem:titleproperty.- Return type:
New in version 6.8.
- get_widget()¶
- Returns:
the value of the
Tepl.PanelItem:widgetproperty.- Return type:
Gtk.WidgetorNone
New in version 6.8.
Property Details¶
- Tepl.PanelItem.props.icon_name¶
- Name:
icon-name- Type:
- Default Value:
- Flags:
The icon name.
It can be shown in the UI to choose this item, for example with the
Gtk.Image'sGtk.Image:icon-nameproperty.New in version 6.11.
- Tepl.PanelItem.props.name¶
- Name:
name- Type:
- Default Value:
- Flags:
The name.
It is an ID as a UTF-8 string. It is not displayed in the UI. It uniquely identifies an item within a list.
New in version 6.11.
- Tepl.PanelItem.props.position¶
- Name:
position- Type:
- Default Value:
0- Flags:
The position.
Used to sort items in the desired order.
New in version 6.11.
- Tepl.PanelItem.props.title¶
- Name:
title- Type:
- Default Value:
- Flags:
The title.
It is a human-readable UTF-8 string that can be shown in the UI to choose this item.
New in version 6.11.
- Tepl.PanelItem.props.widget¶
- Name:
widget- Type:
- Default Value:
- Flags:
The
Gtk.Widget(the main content).New in version 6.11.