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.PanelItem
object.- Return type:
Creates a new
Tepl.PanelItem
object.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.CompareFunc
that takes into account theTepl.PanelItem
:position
property in priority, and falls back to theTepl.PanelItem
:title
property 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.CompareFunc
that takes into account only theTepl.PanelItem
:title
property.New in version 6.8.
- get_icon_name()¶
- Returns:
the value of the
Tepl.PanelItem
:icon-name
property.- Return type:
New in version 6.8.
- get_name()¶
- Returns:
the value of the
Tepl.PanelItem
:name
property.- Return type:
New in version 6.8.
- get_position()¶
- Returns:
the value of the
Tepl.PanelItem
:position
property.- Return type:
New in version 6.11.
- get_title()¶
- Returns:
the value of the
Tepl.PanelItem
:title
property.- Return type:
New in version 6.8.
- get_widget()¶
- Returns:
the value of the
Tepl.PanelItem
:widget
property.- Return type:
Gtk.Widget
orNone
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-name
property.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.