gtk.SeparatorToolItem

gtk.SeparatorToolItem — a toolbar item that separates groups of other toolbar items (new in PyGTK 2.4)

Synopsis

class gtk.SeparatorToolItem(gtk.ToolItem):
    gtk.SeparatorToolItem()
def get_draw()
def set_draw(draw)

Ancestry

+-- gobject.GObject
  +-- gtk.Object
    +-- gtk.Widget
      +-- gtk.Container
        +-- gtk.Bin
          +-- gtk.ToolItem
            +-- gtk.SeparatorToolItem

gtk.SeparatorToolItem Properties

gtk.Object Properties

gtk.Widget Properties

gtk.Container Properties

gtk.ToolItem Properties

"draw"Read-WriteIf TRUE, the separator is drawn. Available in GTK+ 2.4.

gtk.SeparatorToolItem Style Properties

gtk.Widget Style Properties

gtk.SeparatorToolItem Signal Prototypes

gobject.GObject Signal Prototypes

gtk.Object Signal Prototypes

gtk.Widget Signal Prototypes

gtk.Container Signal Prototypes

gtk.ToolItem Signal Prototypes

Description

Note

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.

Constructor

    gtk.SeparatorToolItem()
Returns :the new gtk.SeparatorToolItem Since: 2.4

Note

This constructor is available in PyGTK 2.4 and above.

Create a new gtk.SeparatorToolItem

Methods

gtk.SeparatorToolItem.get_draw

    def get_draw()
Returns :TRUE if separator_tool_item is drawn as a line, or just blank.

Note

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.

gtk.SeparatorToolItem.set_draw

    def set_draw(draw)
draw :if TRUE the gtk.SeparatorToolItem is drawn as a vertical line

Note

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.