Gtk.ToolItemGroup¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.ToolShell (9)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
Whether the group has been collapsed and items are hidden |
||
r/w/en |
Ellipsize for item group headers |
||
r/w/en |
Relief of the group header button |
||
r/w |
The human-readable title of this item group |
||
r/w |
A widget to display in place of the usual label |
Child Properties¶
Name |
Type |
Default |
Flags |
Short Description |
---|---|---|---|---|
|
r/w |
Whether the item should receive extra space when the group grows |
||
|
r/w |
Whether the item should fill the available space |
||
|
r/w |
Whether the item should be the same size as other homogeneous items |
||
|
r/w |
Whether the item should start a new row |
||
|
|
r/w |
Position of the item within this group |
Style Properties¶
- Inherited:
Name |
Type |
Default |
Flags |
Short Description |
---|---|---|---|---|
|
|
r |
Size of the expander arrow |
|
|
|
r |
Spacing between expander arrow and caption |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gtk.ToolItemGroup(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Gtk.ToolItemGroup
is used together withGtk.ToolPalette
to addGtk.ToolItems
to a palette like container with different categories and drag and drop support.- CSS nodes
Gtk.ToolItemGroup
has a single CSS node named toolitemgroup.New in version 2.20.
- classmethod new(label)[source]¶
- Parameters:
label (
str
) – the label of the new group- Returns:
a new
Gtk.ToolItemGroup
.- Return type:
Creates a new tool item group with label label.
New in version 2.20.
- get_drop_item(x, y)[source]¶
- Parameters:
- Returns:
the
Gtk.ToolItem
at position (x, y)- Return type:
Gets the tool item at position (x, y).
New in version 2.20.
- get_ellipsize()[source]¶
- Returns:
the
Pango.EllipsizeMode
of self- Return type:
Gets the ellipsization mode of self.
New in version 2.20.
- get_header_relief()[source]¶
- Returns:
the
Gtk.ReliefStyle
- Return type:
Gets the relief mode of the header button of self.
New in version 2.20.
- get_item_position(item)[source]¶
- Parameters:
item (
Gtk.ToolItem
) – aGtk.ToolItem
- Returns:
the index of item in self or -1 if item is no child of self
- Return type:
Gets the position of item in self as index.
New in version 2.20.
- get_label()[source]¶
- Returns:
the label of self. The label is an internal string of self and must not be modified. Note that
None
is returned if a custom label has been set withGtk.ToolItemGroup.set_label_widget
()- Return type:
Gets the label of self.
New in version 2.20.
- get_label_widget()[source]¶
- Returns:
the label widget of self
- Return type:
Gets the label widget of self. See
Gtk.ToolItemGroup.set_label_widget
().New in version 2.20.
- get_n_items()[source]¶
- Returns:
the number of tool items in self
- Return type:
Gets the number of tool items in self.
New in version 2.20.
- get_nth_item(index)[source]¶
- Parameters:
index (
int
) – the index- Returns:
the
Gtk.ToolItem
at index- Return type:
Gets the tool item at index in group.
New in version 2.20.
- insert(item, position)[source]¶
- Parameters:
item (
Gtk.ToolItem
) – theGtk.ToolItem
to insert into selfposition (
int
) – the position of item in self, starting with 0. The position -1 means end of list.
Inserts item at position in the list of children of self.
New in version 2.20.
- set_collapsed(collapsed)[source]¶
- Parameters:
collapsed (
bool
) – whether the self should be collapsed or expanded
Sets whether the self should be collapsed or expanded.
New in version 2.20.
- set_ellipsize(ellipsize)[source]¶
- Parameters:
ellipsize (
Pango.EllipsizeMode
) – thePango.EllipsizeMode
labels in self should use
Sets the ellipsization mode which should be used by labels in self.
New in version 2.20.
- set_header_relief(style)[source]¶
- Parameters:
style (
Gtk.ReliefStyle
) – theGtk.ReliefStyle
Set the button relief of the group header. See
Gtk.Button.set_relief
() for details.New in version 2.20.
- set_item_position(item, position)[source]¶
- Parameters:
item (
Gtk.ToolItem
) – theGtk.ToolItem
to move to a new position, should be a child of self.position (
int
) – the new position of item in self, starting with 0. The position -1 means end of list.
Sets the position of item in the list of children of self.
New in version 2.20.
- set_label(label)[source]¶
- Parameters:
label (
str
) – the new human-readable label of of the group
Sets the label of the tool item group. The label is displayed in the header of the group.
New in version 2.20.
- set_label_widget(label_widget)[source]¶
- Parameters:
label_widget (
Gtk.Widget
) – the widget to be displayed in place of the usual label
Sets the label of the tool item group. The label widget is displayed in the header of the group, in place of the usual label.
New in version 2.20.
Property Details¶
- Gtk.ToolItemGroup.props.collapsed¶
- Name:
collapsed
- Type:
- Default Value:
- Flags:
Whether the group has been collapsed and items are hidden
- Gtk.ToolItemGroup.props.ellipsize¶
- Name:
ellipsize
- Type:
- Default Value:
- Flags:
Ellipsize for item group headers
- Gtk.ToolItemGroup.props.header_relief¶
- Name:
header-relief
- Type:
- Default Value:
- Flags:
Relief of the group header button
- Gtk.ToolItemGroup.props.label¶
-
The human-readable title of this item group
- Gtk.ToolItemGroup.props.label_widget¶
- Name:
label-widget
- Type:
- Default Value:
- Flags:
A widget to display in place of the usual label