Skip to content

Api example inclusions #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,93 @@ Example to compare Label and Bitmap_Label characteristics
.. literalinclude:: ../examples/display_text_label_vs_bitmap_label_comparison.py
:caption: examples/display_text_label_vs_bitmap_label_comparison.py
:linenos:

Background color example
------------------------

Show the text backgrounds features

.. literalinclude:: ../examples/display_text_background_color.py
:caption: examples/display_text_background_color.py
:linenos:

Text padding example
--------------------

Show the text padding features in all directions

.. literalinclude:: ../examples/display_text_background_color_padding.py
:caption: examples/display_text_background_color.py
:linenos:

Anchored Position
-----------------

Anchored position use illustration

.. literalinclude:: ../examples/display_text_anchored_position.py
:caption: examples/display_text_anchored_position.py
:linenos:

Textarea Boundingbox
--------------------

Boundingbox demonstration

.. literalinclude:: ../examples/display_text_textarea_boundingbox.py
:caption: examples/display_text_textarea_boundingbox.py
:linenos:

Align Baseline example
----------------------

Demonstrate how to align different labels to a common horizontal line

.. literalinclude:: ../examples/display_text_label_align_baseline_comparison.py
:caption: examples/display_text_label_align_baseline_comparison.py
:linenos:

Magtag example
--------------

Uses the MAGTAG to display some text

.. literalinclude:: ../examples/display_text_magtag.py
:caption: examples/display_text_magtag.py
:linenos:

MatrixPortal example
--------------------

Uses the MatrixPortal to display some text

.. literalinclude:: ../examples/display_text_matrixportal.py
:caption: examples/display_text_matrixportal.py
:linenos:

PyPortal example
----------------

Uses the Pyportal to display some text

.. literalinclude:: ../examples/display_text_pyportal.py
:caption: examples/display_text_pyportal.py
:linenos:

Wraptest example
----------------

Illustrates the wraptest feature

.. literalinclude:: ../examples/display_text_wraptest.py
:caption: examples/display_text_wraptest.py
:linenos:

Wrap Pixel Test
---------------

Wrap Pixel Test

.. literalinclude:: ../examples/display_text_wrap_pixels_test.py
:caption: examples/display_text_wrap_pixels_test.py
:linenos: