Skip to content

Commit

Permalink
Deployed 48abaf0 with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
e3rd committed Sep 25, 2024
1 parent 49cc102 commit 7a183f2
Show file tree
Hide file tree
Showing 6 changed files with 378 additions and 625 deletions.
58 changes: 57 additions & 1 deletion Mininterface/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,62 @@ <h2 id="mininterface.Mininterface.ask_number" class="doc doc-heading">
<div class="doc doc-contents ">

<p>Prompt the user to input a number. Empty input = 0.</p>
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="n">m</span> <span class="o">=</span> <span class="n">run</span><span class="p">()</span> <span class="c1"># receives a Mininterface object</span>
<a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="n">m</span><span class="o">.</span><span class="n">ask_number</span><span class="p">(</span><span class="s2">&quot;What&#39;s your age?&quot;</span><span class="p">)</span>
</code></pre></div>
<p><img alt="Ask number dialog" src="../asset/standalone_number.avif" /></p>


<p><span class="doc-section-title">Parameters:</span></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr class="doc-section-item">
<td><code>text</code></td>
<td>
<code>str</code>
</td>
<td>
<div class="doc-md-description">
<p>The question text.</p>
</div>
</td>
<td>
<em>required</em>
</td>
</tr>
</tbody>
</table>


<p><span class="doc-section-title">Returns:</span></p>
<table>
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="doc-section-item">
<td>
<code>int</code>
</td>
<td>
<div class="doc-md-description">
<p>Number</p>
</div>
</td>
</tr>
</tbody>
</table>

</div>

Expand Down Expand Up @@ -908,7 +964,7 @@ <h2 id="mininterface.Mininterface.choice" class="doc doc-heading">
<div class="doc-md-description">
<p>You can denote the choices in many ways.
Either put options in an iterable:</p>
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="kn">from</span> <span class="nn">mininterface</span> <span class="kn">import</span> <span class="n">run</span><span class="p">,</span> <span class="n">Tag</span>
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="kn">from</span> <span class="nn">mininterface</span> <span class="kn">import</span> <span class="n">run</span>
<a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="n">m</span> <span class="o">=</span> <span class="n">run</span><span class="p">()</span>
<a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a><span class="n">m</span><span class="o">.</span><span class="n">choice</span><span class="p">([</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">])</span>
</code></pre></div>
Expand Down
Loading

0 comments on commit 7a183f2

Please sign in to comment.