#------------------------------------------------------------------------------
#  Copyright (c) 2013, Enthought, Inc.
#  All rights reserved.
#------------------------------------------------------------------------------
""" Implements the constraints_demo in Enaml
"""
from enaml.layout.api import align, hbox
from enaml.widgets.api import Window, Container, Html

enamldef Main(Window):
    Container:
        constraints = [
            hbox(one, two, three, four),
            align('width', one, two, three, four),
        ]
        Html:
            id: one
            source = ''
        Html:
            id: two
            source = ''
        Html:
            id: three
            source = ''
        Html:
            id: four
            source = ''

