lf, action, tofront=False)</span>
</code></dt>
<dd>
<div class="desc"><p>Add an action to the list of existing actions.</p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>action</code></strong></dt>
<dd>the action to add</dd>
<dt><strong><code>tofront</code></strong></dt>
<dd>if True, add as first instead of last action</dd>
</dl></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def add(self, action, tofront=False):
    &#34;&#34;&#34;
    Add an 