From e172410758123a4195ba5e1ae414c48033bfb4fc Mon Sep 17 00:00:00 2001 From: John Wiggins Date: Fri, 22 Feb 2013 11:41:03 -0600 Subject: [PATCH] Add an api.py to layout that includes the layout helpers --- enable/layout/api.py | 8 ++++++++ examples/enable/constraints_demo.py | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 enable/layout/api.py diff --git a/enable/layout/api.py b/enable/layout/api.py new file mode 100644 index 000000000..db673c30d --- /dev/null +++ b/enable/layout/api.py @@ -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) + diff --git a/examples/enable/constraints_demo.py b/examples/enable/constraints_demo.py index eee03c456..f71e357ef 100644 --- a/examples/enable/constraints_demo.py +++ b/examples/enable/constraints_demo.py @@ -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