add tui module and example, add contex manager cd and the method run_file in helper

import vendor modules only once during import

change text color for the method cad_wireframe in geometry_plot_pylab and add hide key
This commit is contained in:
2020-01-13 10:25:33 +01:00
parent 4fc4903dc2
commit 033cb92dc4
28 changed files with 1848 additions and 165 deletions

View File

@@ -44,14 +44,48 @@
</li>
</ul>
</div>
</div>
<div class="section" id="indices-and-tables">
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this headline"></a></h1>
<h2>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></p></li>
<li><p><a class="reference internal" href="py-modindex.html"><span class="std std-ref">Module Index</span></a></p></li>
<li><p><a class="reference internal" href="search.html"><span class="std std-ref">Search Page</span></a></p></li>
</ul>
</div>
<div class="section" id="tui">
<h2>tui<a class="headerlink" href="#tui" title="Permalink to this headline"></a></h2>
<p>pylib/tui.py is the main module for tui terminal user interface programs.</p>
<ul class="simple">
<li><p>curses package (for Windows install windows-curses) is the underlying main
package to build terminal programs. The curses package can also be used
directly.</p>
<ul>
<li><p>Windows (Anaconda):</p>
<ul>
<li><p><code class="docutils literal notranslate"><span class="pre">C:\PathToAnaconda3\condabin\conda.bat</span> <span class="pre">activate</span> <span class="pre">base</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">-m</span> <span class="pre">pip</span> <span class="pre">install</span> <span class="pre">windows-curses</span></code></p></li>
<li><p><a class="reference external" href="https://github.com/zephyrproject-rtos/windows-curses">https://github.com/zephyrproject-rtos/windows-curses</a></p></li>
</ul>
</li>
</ul>
</li>
<li><p>drawille package is used to draw with braille characters (dottet and quasi-
line charts). Make sure you use a font with Unicode Braille characters. For
Windows e. g.: NSimSun, MS Gothic.</p>
<ul>
<li><p>Install: <code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">-m</span> <span class="pre">pip</span> <span class="pre">install</span> <span class="pre">drawille</span></code></p></li>
<li><p>Windows (Anaconda):</p>
<ul>
<li><p><code class="docutils literal notranslate"><span class="pre">C:\PathToAnaconda3\condabin\conda.bat</span> <span class="pre">activate</span> <span class="pre">base</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">-m</span> <span class="pre">pip</span> <span class="pre">install</span> <span class="pre">drawille</span></code></p></li>
</ul>
</li>
</ul>
</li>
<li><p>drawblock.py is used to draw with block characters (histogram).</p></li>
</ul>
<p>example/tui.py is an example script to build a terminal program.</p>
</div>
</div>