gtk.SeparatorToolItem — a toolbar item that separates groups of other toolbar items (new in PyGTK 2.4)
class gtk.SeparatorToolItem(gtk.ToolItem): |
+-- gobject.GObject +-- gtk.Object +-- gtk.Widget +-- gtk.Container +-- gtk.Bin +-- gtk.ToolItem +-- gtk.SeparatorToolItem |
|
gobject.GObject Signal Prototypes
This widget is available in PyGTK 2.4 and above.
A gtk.SeparatorToolItem is a gtk.ToolItem that separates groups of other gtk.ToolItem objects. Depending on the theme, a gtk.SeparatorToolItem will often look like a vertical line on horizontally docked toolbars.
If the gtk.SeparatorToolItem is set to expand (using the gtk.ToolItem.set_expand() method) and the "draw" property is FALSE, a gtk.SeparatorToolItem will act as a "spring" that forces other items to the ends of the toolbar.
|
Returns : | the new gtk.SeparatorToolItem Since: 2.4 |
This constructor is available in PyGTK 2.4 and above.
Create a new gtk.SeparatorToolItem
|
Returns : | TRUE if separator_tool_item is drawn as a line, or just blank. |
This method is available in PyGTK 2.4 and above.
The get_draw() method returns TRUE if the separator tool item is drawn as a line or FALSE, if it's just blank. See the set_draw() method.
|
draw : | if TRUE the gtk.SeparatorToolItem is drawn as a vertical line |
This method is available in PyGTK 2.4 and above.
The set_draw() method sets the "draw" property to the value of draw. If draw is TRUE the gtk.SeparatorToolItem is drawn as a vertical line; if FALSE, just blank. Setting the "draw" property to FALSE along with passing TRUE to the gtk.ToolItem.set_expand() is useful to create an item that forces following items to the end of the toolbar.