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.

Backends

Qt

digraph inheritanceff66dada8c { rankdir=LR; width=8.0; ratio=compress; fontsize=14; size="8.0, 12.0"; "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)"]; "QtGroupBox" [style="setlinewidth(0.5)",URL="#enaml.qt.qt_group_box.QtGroupBox",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtContainer" -> "QtGroupBox" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QtObject" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25]; "QtContainer" [style="setlinewidth(0.5)",URL="enaml.widgets.container.Container.html#enaml.qt.qt_container.QtContainer",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtConstraintsWidget" -> "QtContainer" [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)"]; }

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

digraph inheritancea3637bc125 { rankdir=LR; width=8.0; ratio=compress; fontsize=14; size="8.0, 12.0"; "WxConstraintsWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.constraints_widget.ConstraintsWidget.html#enaml.wx.wx_constraints_widget.WxConstraintsWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxWidget" -> "WxConstraintsWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WxContainer" [style="setlinewidth(0.5)",URL="enaml.widgets.container.Container.html#enaml.wx.wx_container.WxContainer",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxConstraintsWidget" -> "WxContainer" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WxWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.widget.Widget.html#enaml.wx.wx_widget.WxWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxObject" -> "WxWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WxGroupBox" [style="setlinewidth(0.5)",URL="#enaml.wx.wx_group_box.WxGroupBox",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxContainer" -> "WxGroupBox" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WxObject" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25]; }

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.