Skip to content

Commit

Permalink
Add an api.py to layout that includes the layout helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiggins authored and brett-patterson committed Jun 25, 2014
1 parent 32be04c commit e172410
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions enable/layout/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#------------------------------------------------------------------------------
# Copyright (c) 2013, Enthought, Inc.
# All rights reserved.
#------------------------------------------------------------------------------

from .layout_helpers import (expand_constraints, horizontal, vertical, hbox,
vbox, align, grid, spacer)

4 changes: 2 additions & 2 deletions examples/enable/constraints_demo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

from enable.api import Component, ComponentEditor, ConstraintsContainer
from enable.layout.layout_helpers import (align, grid, horizontal, hbox, vbox,
spacer, vertical)
from enable.layout.api import (align, grid, horizontal, hbox, vbox, spacer,
vertical)
from traits.api import HasTraits, Bool, Instance, Str
from traitsui.api import Item, View, HGroup, VGroup, CodeEditor

Expand Down

0 comments on commit e172410

Please sign in to comment.