Gtk.SeparatorToolItem¶
| Subclasses: | None | 
|---|
Methods¶
| 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: | Gtk.Widget (17) | 
|---|
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: - Gtk.ToolItem- Abstract: - No - Structure: - Gtk.SeparatorToolItemClass- A - Gtk.SeparatorToolItemis a- Gtk.ToolItemthat separates groups of other- Gtk.ToolItems. Depending on the theme, a- Gtk.SeparatorToolItemwill often look like a vertical line on horizontally docked toolbars.- If the - Gtk.Toolbarchild property “expand” is- Trueand the property- Gtk.SeparatorToolItem- :drawis- False, a- Gtk.SeparatorToolItemwill 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.SeparatorToolItemhas a single CSS node with name separator.- 
classmethod new()[source]¶
- Returns: - the new - Gtk.SeparatorToolItem- Return type: - Gtk.ToolItem- Create a new - Gtk.SeparatorToolItem- New in version 2.4. 
 - 
get_draw()[source]¶
- Returns: - Trueif self is drawn as a line, or just blank.- Return type: - bool- 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 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.