1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
..
NOTE: This RST file was generated by `make examples`.
Do not edit it directly.
See docs/source/examples/example_doc_generator.py
Align Offset Example
===============================================================================
An example of the ``align`` layout helper with inter-element offsets.
This is example is nearly identical to the `align.enaml` example. This
example adds to the other by showing how the ``align`` layout helper
accepts spacing offsets for its layout items.
.. TIP:: To see this example in action, download it from
:download:`align_offset <../../../examples/layout/basic/align_offset.enaml>`
and run::
$ enaml-run align_offset.enaml
Screenshot
-------------------------------------------------------------------------------
.. image:: images/ex_align_offset.png
Example Enaml Code
-------------------------------------------------------------------------------
.. literalinclude:: ../../../examples/layout/basic/align_offset.enaml
:language: enaml
|