.. _Examples: TXLWizard Examples ================== Introductory Example -------------------- Introduction ############ The following code demonstrates an introductory example usage of the `TXLWizard` for generating TXL files with python code. The code can be found in the file :download:`Content/Example_Introduction.py `. The resulting SVG image is shown in Figure :ref:`ExampleIntroductionSVG`. Have a look at more advanced examples in Sections :ref:`TXLWizardExampleSimple` and :ref:`TXLWizardExampleAdvanced` and at the :ref:`PythonModuleReference`. Code #### .. literalinclude:: /Content/Example_Introduction.py :linenos: .. _ExampleIntroductionSVG: Generated SVG Image ################### .. figure:: /Content/Masks/Example_Introduction.png Generated SVG Image for `Content/Example_Introduction.py` .. _TXLWizardExampleSimple: Simple Example -------------- Introduction ############ The following code demonstrates a simple example usage of the `TXLWizard` for generating TXL files with python code. The code can be found in the file :download:`Content/Example_Simple.py `. The resulting SVG image is shown in Figure :ref:`ExampleSimpleSVG`. A more advanced example is shown in Section :ref:`TXLWizardExampleAdvanced` Code #### .. literalinclude:: /Content/Example_Simple.py :linenos: .. _ExampleSimpleSVG: Generated SVG Image ################### .. figure:: /Content/Masks/Example_Simple.png Generated SVG Image for `Content/Example_Simple.py` TXLImport Example ----------------- Introduction ############ The following code demonstrates a simple example usage of the `TXLWizard` for importing existing TXL files and adding an array of labels. The code can be found in the file :download:`Content/Example_ImportTXLFile.py `. The resulting SVG image is shown in Figure :ref:`ExampleImportSVG`. A more advanced example is shown in Section :ref:`TXLWizardExampleAdvanced` Code #### .. literalinclude:: /Content/Example_ImportTXLFile.py :linenos: .. _ExampleImportSVG: Generated SVG Image ################### .. figure:: /Content/Masks/Example_ImportTXLFile.png Generated SVG Image for `Content/Example_ImportTXLFile.py` .. _TXLWizardExampleAdvanced: Advanced Example ---------------- Introduction ############ The following code demonstrates an advanced example usage of the `TXLWizard` for generating TXL files with python code. The code can be found in the file :download:`Content/Example_Advanced.py `. The resulting SVG image is shown in Figure :ref:`ExampleAdvancedSVG`. Code #### .. literalinclude:: /Content/Example_Advanced.py :linenos: .. _ExampleAdvancedSVG: Generated SVG Image ################### .. figure:: /Content/Masks/Example_Advanced.png Generated SVG Image for `Content/Example_Advanced.py`