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.

__implements__

alias of __NoInterface__

Backends

Qt

Inheritance diagram of enaml.qt.qt_separator.QtSeparator

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