Page Contents

This Page

Separator

class enaml.widgets.separator.Separator(parent=None, **kwargs)[source]

Bases: enaml.widgets.control.Control

A widget which draws a horizontal or vertical separator line.

orientation = None

The orientation of the separator line.

line_style = None

The line style for the separator.

line_width = None

The thickness of the outer separator line.

midline_width = None

The thickness of the inner separator line. This only has an effect for the ‘sunken’ and ‘raised’ line styles.

hug_width = None

Hug width is redefined as a property to be computed based on the orientation of the separator unless overridden by the user.

hug_height = None

Hug height is redefined as a property to be computed based on the orientation of the separator unless overridden by the user.

snapshot()[source]

Returns the snapshot dictionary for the Separator.

bind()[source]

Binds the change handlers for the Separator.

Backends

Qt

digraph inheritance2a993ca59f { rankdir=LR; width=8.0; ratio=compress; fontsize=14; size="8.0, 12.0"; "QtObject" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25]; "QtControl" [style="setlinewidth(0.5)",URL="enaml.widgets.control.Control.html#enaml.qt.qt_control.QtControl",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtConstraintsWidget" -> "QtControl" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QtSeparator" [style="setlinewidth(0.5)",URL="#enaml.qt.qt_separator.QtSeparator",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtControl" -> "QtSeparator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QtWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.widget.Widget.html#enaml.qt.qt_widget.QtWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtObject" -> "QtWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QtConstraintsWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.constraints_widget.ConstraintsWidget.html#enaml.qt.qt_constraints_widget.QtConstraintsWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtWidget" -> "QtConstraintsWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class enaml.qt.qt_separator.QtSeparator(object_id, parent, session)[source]

Bases: enaml.qt.qt_control.QtControl

A Qt implementation of an Enaml Separator.

create_widget(parent, tree)[source]

Create underlying QSeparator control.

create(tree)[source]

Create and initialize the underlying widget.

on_action_set_orientation(content)[source]

Handle the ‘set_orientation’ action from the Enaml widget.

on_action_set_line_style(content)[source]

Handle the ‘set_line_style’ action from the Enaml widget.

on_action_set_line_width(content)[source]

Handle the ‘set_line_width’ action from the Enaml widget.

on_action_set_midline_width(content)[source]

Handle the ‘set_midline_width’ action from the Enaml widget.

set_orientation(orientation)[source]

Set the orientation of the underlying widget.

set_line_style(style)[source]

Set the line style of the underlying widget.

set_line_width(width)[source]

Set the line width of the underlying widget.

set_midline_width(width)[source]

Set the midline width of the underlying widget.

Wx