You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h1>Positioning a Widget<aclass="headerlink" href="#positioning-a-widget" title="Permalink to this heading">¶</a></h1>
<p>Buttons, checkboxes, menus, radio buttons, and sliders collectively are termed “widgets”. The <codeclass="docutils literal notranslate"><spanclass="pre">pos</span></code> attributed of a widget specifies its position.</p>
<p>Options:</p>
<ulclass="simple">
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">scene.caption_anchor</span></code> (below the canvas–the default)</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">scene.title_anchor</span></code> (above the canvas)</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">print_anchor</span></code> (bottom of the page, where the print area is)</p></li>
</ul>
<p>When you create a widget it is appended to the anchor point.</p>
<ulclass="simple">
<li><p>For more space after the widget, insert spaces: <codeclass="docutils literal notranslate"><spanclass="pre">scene.append_to_caption('</span>   <spanclass="pre">')</span></code>.</p></li>
<li><p>For vertical space insert carriage returns: <codeclass="docutils literal notranslate"><spanclass="pre">scene.append_to_caption('\n\n')</span></code>.</p></li>
</ul>
<p>The <aclass="reference internal" href="wtext.html"><spanclass="doc">wtext</span></a> object allows you to create modifiable text in the caption or title of a canvas.</p>