FreeCAD-Doc/localwiki/Std_PythonConsole.html
2018-07-08 12:11:49 -05:00

79 lines
3.8 KiB
HTML

<html><head><title>Std PythonConsole</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Std PythonConsole</h1></div>
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><table class="fcinfobox wikitable ct" >
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="Std_PythonConsole"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Std_PythonConsole.png" class="image"><img alt="Std PythonConsole.png" src="Std_PythonConsole.png" width="32" height="32" /></a> Std PythonConsole</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Menu location
</th></tr>
<tr>
<td class="ctEven"><a href="Std_View_Menu.html" title="Std View Menu">View</a> → Panels → Python console
</td></tr>
<tr>
<th class="ctOdd">Workbenches
</th></tr>
<tr>
<td class="ctEven">All
</td></tr>
<tr>
<th class="ctOdd">Default shortcut
</th></tr>
<tr>
<td class="ctEven">None
</td></tr>
<tr>
<th class="ctOdd">See also
</th></tr>
<tr>
<td class="ctEven">
</td></tr>
<tr>
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="#Std_PythonConsole"><span class="tocnumber">1</span> <span class="toctext">Std PythonConsole</span></a></li>
<li class="toclevel-1 tocsection-1"><a href="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#Use"><span class="tocnumber">3</span> <span class="toctext">Use</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#Limitations"><span class="tocnumber">4</span> <span class="toctext">Limitations</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#Notes"><span class="tocnumber">5</span> <span class="toctext">Notes</span></a></li>
</ul>
</div>
</td></tr></table>
<p><br />
</p>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>Gives you an extra window showing and accepting python commands.
</p>
<h2><span class="mw-headline" id="Use">Use</span></h2>
<p>Choose <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> View</span><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> Panels</span><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> Python console</span> from the top menu.<br />
If you use a command inside the FreeCAD-GUI which was programmed with python<br />
the python-command will be shown in this window.<br />
You can also type in python commands to be executed by FreeCAD.
</p>
<h2><span class="mw-headline" id="Limitations">Limitations</span></h2>
<p><br />
</p>
<h2><span class="mw-headline" id="Notes">Notes</span></h2>
<p>FreeCAD comes pre-bundled with a built in python-interpreter.<br />
To find out the version number choose <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> Help</span><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> About FreeCAD</span><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> Copy to clipboard</span>.<br />
Paste the data in a text editor to see the version of the built-in python interpreter.
<br />
</p>
<div style="clear:both"></div>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Std_PythonConsole&amp;oldid=186900">http://www.freecadweb.org/wiki/index.php?title=Std_PythonConsole&amp;oldid=186900</a>"</div>
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
</div>
</div>
<div id="mw-navigation">
<h2>Navigation menu</h2>
</body></html>