Update documentation
This commit is contained in:
parent
d555d55b2c
commit
f7a7dd37ed
13 changed files with 60 additions and 60 deletions
|
@ -165,12 +165,12 @@
|
|||
<div class="section" id="class-documentation">
|
||||
<h2>Class Documentation<a class="headerlink" href="#class-documentation" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="py class">
|
||||
<dt id="compLIB.Battery.Battery">
|
||||
<em class="property">class </em><code class="sig-prename descclassname">compLIB.Battery.</code><code class="sig-name descname">Battery</code><a class="headerlink" href="#compLIB.Battery.Battery" title="Permalink to this definition">¶</a></dt>
|
||||
<dt id="compLib.Battery.Battery">
|
||||
<em class="property">class </em><code class="sig-prename descclassname">compLib.Battery.</code><code class="sig-name descname">Battery</code><a class="headerlink" href="#compLib.Battery.Battery" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Used to interact with the battery</p>
|
||||
<dl class="py method">
|
||||
<dt id="compLIB.Battery.Battery.percent">
|
||||
<em class="property">static </em><code class="sig-name descname">percent</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → int<a class="headerlink" href="#compLIB.Battery.Battery.percent" title="Permalink to this definition">¶</a></dt>
|
||||
<dt id="compLib.Battery.Battery.percent">
|
||||
<em class="property">static </em><code class="sig-name descname">percent</code><span class="sig-paren">(</span><span class="sig-paren">)</span> → int<a class="headerlink" href="#compLib.Battery.Battery.percent" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Get battery percentage</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Returns</dt>
|
||||
|
@ -189,7 +189,7 @@
|
|||
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="section" id="printing-percentage">
|
||||
<h3>Printing percentage<a class="headerlink" href="#printing-percentage" title="Permalink to this headline">¶</a></h3>
|
||||
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">compLIB.Battery</span> <span class="kn">import</span> <span class="n">Battery</span>
|
||||
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">compLib.Battery</span> <span class="kn">import</span> <span class="n">Battery</span>
|
||||
|
||||
<span class="nb">print</span><span class="p">(</span><span class="n">Battery</span><span class="o">.</span><span class="n">percent</span><span class="p">())</span>
|
||||
</pre></div>
|
||||
|
|
Reference in a new issue