Gtk.SeparatorToolItem - Classes - Gtk 3.0 (original) (raw)
g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Activatable Gtk.Activatable GObject.GInterface->Gtk.Activatable Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.ToolItem Gtk.ToolItem Gtk.Activatable->Gtk.ToolItem Gtk.Bin Gtk.Bin Gtk.Bin->Gtk.ToolItem Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.SeparatorToolItem Gtk.SeparatorToolItem Gtk.ToolItem->Gtk.SeparatorToolItem Gtk.Widget->Gtk.Container
Subclasses:
None
Methods¶
Inherited:
Gtk.ToolItem (28), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Activatable (6)
Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class | new () |
---|---|
get_draw () | |
set_draw (draw) |
Virtual Methods¶
Inherited:
Gtk.ToolItem (2), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.Activatable (2)
Properties¶
Inherited:
Gtk.ToolItem (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Activatable (2)
Name | Type | Flags | Short Description |
---|---|---|---|
draw | bool | r/w/en | Whether the separator is drawn, or just blank |
Style Properties¶
Inherited:
Signals¶
Inherited:
Gtk.ToolItem (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Fields¶
Inherited:
Gtk.ToolItem (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name | Type | Access | Description |
---|---|---|---|
parent | Gtk.ToolItem | r |
Class Details¶
class Gtk.SeparatorToolItem(**kwargs)¶
Bases:
Abstract:
No
Structure:
A Gtk.SeparatorToolItem is a Gtk.ToolItem that separates groups of otherGtk.ToolItems. Depending on the theme, a Gtk.SeparatorToolItem will often look like a vertical line on horizontally docked toolbars.
If the Gtk.Toolbar child property “expand” is True and the propertyGtk.SeparatorToolItem :draw is False, a Gtk.SeparatorToolItem will act as a “spring” that forces other items to the ends of the toolbar.
Use Gtk.SeparatorToolItem.new() to create a new Gtk.SeparatorToolItem.
CSS nodes
Gtk.SeparatorToolItem has a single CSS node with name separator.
Returns:
the new Gtk.SeparatorToolItem
Return type:
Create a new Gtk.SeparatorToolItem
New in version 2.4.
Returns:
True if self is drawn as a line, or just blank.
Return type:
Returns whether self is drawn as a line, or just blank. See Gtk.SeparatorToolItem.set_draw().
New in version 2.4.
Parameters:
draw (bool) – whether self is drawn as a vertical line
Whether self is drawn as a vertical line, or just blank. Setting this to False along with Gtk.ToolItem.set_expand() is useful to create an item that forces following items to the end of the toolbar.
New in version 2.4.
Property Details¶
Gtk.SeparatorToolItem.props.draw¶
Name:
draw
Type:
Default Value:
Flags:
READABLE, WRITABLE, EXPLICIT_NOTIFY
Whether the separator is drawn, or just blank