Gtk.SeparatorToolItem¶
- 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  | 
  | 
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 Gtk.ToolItem (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Activatable (2)
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
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  | 
r  | 
Class Details¶
- class Gtk.SeparatorToolItem(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A
Gtk.SeparatorToolItemis aGtk.ToolItemthat separates groups of otherGtk.ToolItems. Depending on the theme, aGtk.SeparatorToolItemwill often look like a vertical line on horizontally docked toolbars.If the
Gtk.Toolbarchild property “expand” isTrueand the propertyGtk.SeparatorToolItem:drawisFalse, aGtk.SeparatorToolItemwill act as a “spring” that forces other items to the ends of the toolbar.Use
Gtk.SeparatorToolItem.new() to create a newGtk.SeparatorToolItem.- CSS nodes
 
Gtk.SeparatorToolItemhas a single CSS node with name separator.- classmethod new()[source]¶
 - Returns:
 the new
Gtk.SeparatorToolItem- Return type:
 
Create a new
Gtk.SeparatorToolItemNew in version 2.4.
- get_draw()[source]¶
 - 
Returns whether self is drawn as a line, or just blank. See
Gtk.SeparatorToolItem.set_draw().New in version 2.4.
 
- set_draw(draw)[source]¶
 - 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
Falsealong withGtk.ToolItem.set_expand() is useful to create an item that forces following items to the end of the toolbar.New in version 2.4.