Skip to content

Commit

Permalink
TextPanel added.
Browse files Browse the repository at this point in the history
  • Loading branch information
salt-die committed Feb 6, 2023
1 parent 57c5836 commit 75b7e83
Show file tree
Hide file tree
Showing 86 changed files with 2,300 additions and 197 deletions.
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 8e7949cf519b671a9cec35d9a31959e9
config: 38b42609b25ce2ab6bc1dfb006e29859
tags: 645f666f9bcd5a90fca523b33c5a78b7
1 change: 1 addition & 0 deletions docs/_sources/reference/generated/nurses_2.widgets.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
nurses_2.widgets.split_layout
nurses_2.widgets.text_field
nurses_2.widgets.text_pad
nurses_2.widgets.text_panel
nurses_2.widgets.text_widget
nurses_2.widgets.text_widget_data_structures
nurses_2.widgets.textbox
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
nurses\_2.widgets.text\_panel
=============================

.. automodule:: nurses_2.widgets.text_panel











.. rubric:: Classes

.. autosummary::

TextPanel









2 changes: 1 addition & 1 deletion docs/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '0.18.0',
VERSION: '0.18.1',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
151 changes: 147 additions & 4 deletions docs/genindex.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<title>nurses_2 Documentation &#8212; Python 0.18.0 documentation</title>
<title>nurses_2 Documentation &#8212; Python 0.18.1 documentation</title>
<script>
document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "light"
Expand Down Expand Up @@ -62,7 +62,7 @@



<p class="title logo__title">Python 0.18.0 documentation</p>
<p class="title logo__title">Python 0.18.1 documentation</p>

</a>

Expand Down Expand Up @@ -176,7 +176,7 @@ <h1>nurses_2 Documentation<a class="headerlink" href="#nurses-2-documentation" t
<li class="toctree-l1"><a class="reference internal" href="reference/index.html">API reference</a></li>
</ul>
</div>
<p><strong>Version</strong>: 0.18.0</p>
<p><strong>Version</strong>: 0.18.1</p>
<p><strong>Links</strong>:
<a class="reference external" href="https://github.com/salt-die/nurses_2">Source</a> |
<a class="reference external" href="https://github.com/salt-die/nurses_2/tree/main/examples">Examples</a></p>
Expand Down
Binary file modified docs/objects.inv
Binary file not shown.
9 changes: 7 additions & 2 deletions docs/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Python Module Index &#8212; Python 0.18.0 documentation</title>
<title>Python Module Index &#8212; Python 0.18.1 documentation</title>
<script>
document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "light"
Expand Down Expand Up @@ -63,7 +63,7 @@



<p class="title logo__title">Python 0.18.0 documentation</p>
<p class="title logo__title">Python 0.18.1 documentation</p>

</a>

Expand Down Expand Up @@ -443,6 +443,11 @@ <h1>Python Module Index</h1>
<td>&#160;&#160;&#160;
<a href="reference/generated/nurses_2.widgets.text_pad.html#module-nurses_2.widgets.text_pad"><code class="xref">nurses_2.widgets.text_pad</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
<a href="reference/generated/nurses_2.widgets.text_panel.html#module-nurses_2.widgets.text_panel"><code class="xref">nurses_2.widgets.text_panel</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
Expand Down
11 changes: 8 additions & 3 deletions docs/reference/generated/nurses_2.app.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<title>nurses_2.app &#8212; Python 0.18.0 documentation</title>
<title>nurses_2.app &#8212; Python 0.18.1 documentation</title>
<script>
document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "light"
Expand Down Expand Up @@ -63,7 +63,7 @@



<p class="title logo__title">Python 0.18.0 documentation</p>
<p class="title logo__title">Python 0.18.1 documentation</p>

</a>

Expand Down Expand Up @@ -458,6 +458,11 @@
nurses_2.widgets.text_pad
</a>
</li>
<li class="toctree-l2">
<a class="reference internal" href="nurses_2.widgets.text_panel.html">
nurses_2.widgets.text_panel
</a>
</li>
<li class="toctree-l2">
<a class="reference internal" href="nurses_2.widgets.text_widget.html">
nurses_2.widgets.text_widget
Expand Down Expand Up @@ -573,7 +578,7 @@
</table>
<dl class="py class">
<dt class="sig sig-object py" id="nurses_2.app.App">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">nurses_2.app.</span></span><span class="sig-name descname"><span class="pre">App</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">background_char</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">'</span> <span class="pre">'</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">background_color_pair</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="nurses_2.colors.color_data_structures.html#nurses_2.colors.color_data_structures.ColorPair" title="nurses_2.colors.color_data_structures.ColorPair"><span class="pre">nurses_2.colors.color_data_structures.ColorPair</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">ColorPair(fg_red=0,</span> <span class="pre">fg_green=0,</span> <span class="pre">fg_blue=0,</span> <span class="pre">bg_red=0,</span> <span class="pre">bg_green=0,</span> <span class="pre">bg_blue=0)</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">title</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">double_click_timeout</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.5</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">render_interval</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">color_theme</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="nurses_2.colors.color_data_structures.html#nurses_2.colors.color_data_structures.ColorTheme" title="nurses_2.colors.color_data_structures.ColorTheme"><span class="pre">nurses_2.colors.color_data_structures.ColorTheme</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">ColorTheme(primary=ColorPair(fg_red=246,</span> <span class="pre">fg_green=167,</span> <span class="pre">fg_blue=169,</span> <span class="pre">bg_red=7,</span> <span class="pre">bg_green=12,</span> <span class="pre">bg_blue=37),</span> <span class="pre">button_normal=ColorPair(fg_red=221,</span> <span class="pre">fg_green=228,</span> <span class="pre">fg_blue=237,</span> <span class="pre">bg_red=42,</span> <span class="pre">bg_green=60,</span> <span class="pre">bg_blue=160),</span> <span class="pre">button_hover=ColorPair(fg_red=255,</span> <span class="pre">fg_green=240,</span> <span class="pre">fg_blue=246,</span> <span class="pre">bg_red=50,</span> <span class="pre">bg_green=72,</span> <span class="pre">bg_blue=192),</span> <span class="pre">button_press=ColorPair(fg_red=255,</span> <span class="pre">fg_green=240,</span> <span class="pre">fg_blue=246,</span> <span class="pre">bg_red=196,</span> <span class="pre">bg_green=162,</span> <span class="pre">bg_blue=25),</span> <span class="pre">item_hover=ColorPair(fg_red=246,</span> <span class="pre">fg_green=167,</span> <span class="pre">fg_blue=169,</span> <span class="pre">bg_red=17,</span> <span class="pre">bg_green=24,</span> <span class="pre">bg_blue=52),</span> <span class="pre">item_selected=ColorPair(fg_red=236,</span> <span class="pre">fg_green=243,</span> <span class="pre">fg_blue=255,</span> <span class="pre">bg_red=27,</span> <span class="pre">bg_green=36,</span> <span class="pre">bg_blue=75),</span> <span class="pre">item_disabled=ColorPair(fg_red=39,</span> <span class="pre">fg_green=43,</span> <span class="pre">fg_blue=64,</span> <span class="pre">bg_red=7,</span> <span class="pre">bg_green=12,</span> <span class="pre">bg_blue=37),</span> <span class="pre">titlebar_normal=ColorPair(fg_red=255,</span> <span class="pre">fg_green=224,</span> <span class="pre">fg_blue=223,</span> <span class="pre">bg_red=5,</span> <span class="pre">bg_green=8,</span> <span class="pre">bg_blue=26),</span> <span class="pre">titlebar_inactive=ColorPair(fg_red=125,</span> <span class="pre">fg_green=107,</span> <span class="pre">fg_blue=113,</span> <span class="pre">bg_red=5,</span> <span class="pre">bg_green=8,</span> <span class="pre">bg_blue=26),</span> <span class="pre">border_normal=AColor(red=18,</span> <span class="pre">green=33,</span> <span class="pre">blue=98,</span> <span class="pre">alpha=255),</span> <span class="pre">border_inactive=AColor(red=40,</span> <span class="pre">green=44,</span> <span class="pre">blue=62,</span> <span class="pre">alpha=255),</span> <span class="pre">scrollbar=Color(red=7,</span> <span class="pre">green=12,</span> <span class="pre">blue=37),</span> <span class="pre">scrollbar_indicator_normal=Color(red=14,</span> <span class="pre">green=24,</span> <span class="pre">blue=67),</span> <span class="pre">scrollbar_indicator_hover=Color(red=17,</span> <span class="pre">green=30,</span> <span class="pre">blue=79),</span> <span class="pre">scrollbar_indicator_press=Color(red=23,</span> <span class="pre">green=40,</span> <span class="pre">blue=104))</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">asciicast_path</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">pathlib.Path</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#nurses_2.app.App" title="Permalink to this definition">#</a></dt>
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">nurses_2.app.</span></span><span class="sig-name descname"><span class="pre">App</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">background_char</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">'</span> <span class="pre">'</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">background_color_pair</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="nurses_2.colors.color_data_structures.html#nurses_2.colors.color_data_structures.ColorPair" title="nurses_2.colors.color_data_structures.ColorPair"><span class="pre">nurses_2.colors.color_data_structures.ColorPair</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">ColorPair(fg_red=0,</span> <span class="pre">fg_green=0,</span> <span class="pre">fg_blue=0,</span> <span class="pre">bg_red=0,</span> <span class="pre">bg_green=0,</span> <span class="pre">bg_blue=0)</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">title</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">double_click_timeout</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.5</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">render_interval</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">color_theme</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="nurses_2.colors.color_data_structures.html#nurses_2.colors.color_data_structures.ColorTheme" title="nurses_2.colors.color_data_structures.ColorTheme"><span class="pre">nurses_2.colors.color_data_structures.ColorTheme</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">ColorTheme(primary=ColorPair(fg_red=246,</span> <span class="pre">fg_green=167,</span> <span class="pre">fg_blue=169,</span> <span class="pre">bg_red=7,</span> <span class="pre">bg_green=12,</span> <span class="pre">bg_blue=37),</span> <span class="pre">panel=ColorPair(fg_red=77,</span> <span class="pre">fg_green=103,</span> <span class="pre">fg_blue=255,</span> <span class="pre">bg_red=7,</span> <span class="pre">bg_green=12,</span> <span class="pre">bg_blue=37),</span> <span class="pre">button_normal=ColorPair(fg_red=221,</span> <span class="pre">fg_green=228,</span> <span class="pre">fg_blue=237,</span> <span class="pre">bg_red=42,</span> <span class="pre">bg_green=60,</span> <span class="pre">bg_blue=160),</span> <span class="pre">button_hover=ColorPair(fg_red=255,</span> <span class="pre">fg_green=240,</span> <span class="pre">fg_blue=246,</span> <span class="pre">bg_red=50,</span> <span class="pre">bg_green=72,</span> <span class="pre">bg_blue=192),</span> <span class="pre">button_press=ColorPair(fg_red=255,</span> <span class="pre">fg_green=240,</span> <span class="pre">fg_blue=246,</span> <span class="pre">bg_red=196,</span> <span class="pre">bg_green=162,</span> <span class="pre">bg_blue=25),</span> <span class="pre">item_hover=ColorPair(fg_red=246,</span> <span class="pre">fg_green=167,</span> <span class="pre">fg_blue=169,</span> <span class="pre">bg_red=17,</span> <span class="pre">bg_green=24,</span> <span class="pre">bg_blue=52),</span> <span class="pre">item_selected=ColorPair(fg_red=236,</span> <span class="pre">fg_green=243,</span> <span class="pre">fg_blue=255,</span> <span class="pre">bg_red=27,</span> <span class="pre">bg_green=36,</span> <span class="pre">bg_blue=75),</span> <span class="pre">item_disabled=ColorPair(fg_red=39,</span> <span class="pre">fg_green=43,</span> <span class="pre">fg_blue=64,</span> <span class="pre">bg_red=7,</span> <span class="pre">bg_green=12,</span> <span class="pre">bg_blue=37),</span> <span class="pre">titlebar_normal=ColorPair(fg_red=255,</span> <span class="pre">fg_green=224,</span> <span class="pre">fg_blue=223,</span> <span class="pre">bg_red=5,</span> <span class="pre">bg_green=8,</span> <span class="pre">bg_blue=26),</span> <span class="pre">titlebar_inactive=ColorPair(fg_red=125,</span> <span class="pre">fg_green=107,</span> <span class="pre">fg_blue=113,</span> <span class="pre">bg_red=5,</span> <span class="pre">bg_green=8,</span> <span class="pre">bg_blue=26),</span> <span class="pre">border_normal=AColor(red=18,</span> <span class="pre">green=33,</span> <span class="pre">blue=98,</span> <span class="pre">alpha=255),</span> <span class="pre">border_inactive=AColor(red=40,</span> <span class="pre">green=44,</span> <span class="pre">blue=62,</span> <span class="pre">alpha=255),</span> <span class="pre">scrollbar=Color(red=7,</span> <span class="pre">green=12,</span> <span class="pre">blue=37),</span> <span class="pre">scrollbar_indicator_normal=Color(red=14,</span> <span class="pre">green=24,</span> <span class="pre">blue=67),</span> <span class="pre">scrollbar_indicator_hover=Color(red=17,</span> <span class="pre">green=30,</span> <span class="pre">blue=79),</span> <span class="pre">scrollbar_indicator_press=Color(red=23,</span> <span class="pre">green=40,</span> <span class="pre">blue=104))</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">asciicast_path</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">pathlib.Path</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#nurses_2.app.App" title="Permalink to this definition">#</a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p>
<p>Base for creating terminal applications.</p>
<dl class="field-list simple">
Expand Down
Loading

0 comments on commit 75b7e83

Please sign in to comment.