Page Contents

This Page

GroupBox

class enaml.widgets.group_box.GroupBox(parent=None, **kwargs)[source]

Bases: enaml.widgets.container.Container

The GroupBox container, which introduces a group of widgets with a title and usually has a border.

title = None

The title displayed at the top of the box.

flat = None

The flat parameter determines if the GroupBox is displayed with just the title and a header line (True) or with a full border (False, the default).

title_align = None

The alignment of the title text.

snapshot()[source]

Populates the initial attributes dict for the component.

bind()[source]

A method called after initialization which allows the widget to bind any event handlers necessary.

__implements__

alias of __NoInterface__

Backends

Qt

Inheritance diagram of enaml.qt.qt_group_box.QtGroupBox

class enaml.qt.qt_group_box.QtGroupBox(object_id, parent, session)[source]

Bases: enaml.qt.qt_container.QtContainer

A Qt implementation of an Enaml GroupBox.

create_widget(parent, tree)[source]

Creates the underlying QGroupBox control.

create(tree)[source]

Create and initialize the underlying widget.

contents_margins()[source]

Get the current contents margins for the group box.

on_action_set_title(content)[source]

Handle the ‘set_title’ action from the Enaml widget.

on_action_set_title_align(content)[source]

Handle the ‘set_title_align’ action from the Enaml widget.

on_action_set_flat(content)[source]

Handle the ‘set_flat’ action from the Enaml widget.

set_title(title)[source]

Updates the title of group box.

set_flat(flat)[source]

Updates the flattened appearance of the group box.

set_title_align(align)[source]

Updates the alignment of the title of the group box.

Wx

Inheritance diagram of enaml.wx.wx_group_box.WxGroupBox

class enaml.wx.wx_group_box.WxGroupBox(object_id, parent, session)[source]

Bases: enaml.wx.wx_container.WxContainer

A Wx implementation of an Enaml GroupBox.

create_widget(parent, tree)[source]

Creates the underlying custom wxGroupBox control.

create(tree)[source]

Create and initialize the group box control.

contents_margins()[source]

Get the current contents margins for the group box.

on_action_set_title(content)[source]

Handle the ‘set_title’ action from the Enaml widget.

on_action_set_title_align(content)[source]

Handle the ‘set_title_align’ action from the Enaml widget.

on_action_set_flat(content)[source]

Handle the ‘set_flat’ action from the Enaml widget.

set_title(title)[source]

Update the title of the group box.

set_flat(flat)[source]

Updates the flattened appearance of the group box.

set_title_align(align)[source]

Updates the alignment of the title of the group box.