From ff3ac1354ff1271fcbd3f87c3c091053d125e192 Mon Sep 17 00:00:00 2001 From: jposada202020 Date: Tue, 23 Mar 2021 22:10:15 -0400 Subject: [PATCH 1/2] Change in examples API --- docs/examples.rst | 91 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 86 insertions(+), 5 deletions(-) diff --git a/docs/examples.rst b/docs/examples.rst index 4d97689..f7656f6 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -25,11 +25,92 @@ Example to compare Label and Bitmap_Label characteristics :caption: examples/display_text_label_vs_bitmap_label_comparison.py :linenos: -Label vs Bitmap_label Comparison --------------------------------- +Background color example +------------------------ -Example to compare Label and Bitmap_Label characteristics +Show the text backgrounds features -.. literalinclude:: ../examples/display_text_label_vs_bitmap_label_comparison.py - :caption: examples/display_text_label_vs_bitmap_label_comparison.py +.. literalinclude:: ../examples/display_text_background_color.py + :caption: examples/display_text_background_color.py + :linenos: + +Text padding example +-------------------- + +Show the text padding features + +.. 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: From 94f4a901196fe0224bd703da977cbe8443a06ce9 Mon Sep 17 00:00:00 2001 From: jposada202020 Date: Sun, 28 Mar 2021 15:58:59 -0400 Subject: [PATCH 2/2] # TODO Merging Master --- docs/examples.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples.rst b/docs/examples.rst index f7656f6..97658d5 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -37,7 +37,7 @@ Show the text backgrounds features Text padding example -------------------- -Show the text padding features +Show the text padding features in all directions .. literalinclude:: ../examples/display_text_background_color_padding.py :caption: examples/display_text_background_color.py