<h1>Usage</h1>

<h2>package require pyman</h2>

<h2><br>
</h2>

<h2>pyman&nbsp;addPath

<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">

<div>

<span style="font-size: 13.3333px;">This will add
the list of directories that Python searches for where to find Python module
files to be imported.&nbsp; This is roughly akin to <b>lappend</b> of a
directory to Tcl's <b>auto_path</b> variable or doing a ::tcl::tm::path add to
add a directory to the directories searched for module files.</span><i><br>


<h2><br>
</h2>

<h2>pyman import <i>?-namespace nsName?</i>

<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">

<div>This will import the Python module and analize the module using the Python
introspection tools. The following will be done:</div>

<div>
<ol>
<li>A namespace to contail the Tcl functions and class wrapers for the
functions and class will be created.&nbsp; If the <b>-namesapce</b>&nbsp;option
was present than its value, <i>nsName</i>, will be used.&nbsp; Otherwise the
namespace will be named <b>::pyman::</b><i style="font-weight: bold;">pythonModuleName</i>&nbsp;where
<i>pythonModuleName</i>&nbsp;is the name of the Python module that was
imported.</li>
<li>For each function found in the module, a Tcl wrapper function will be
generated that take the same arguments and will call the Python function and
return its results.</li>
<li>For each class&nbsp; found in the module, a TclOO wrapper class will be
generated.&nbsp; This class will have the same methods with the same arguments
as the public methods in the Python class.&nbsp;&nbsp;</li>
<li>Creation of a new TclOO object of this class will result in a Python object
of the same class being created.&nbsp;&nbsp;</li>
<ul>
<li><u><font color="#ff0000">(Not yet implemented) Calls to class methods of
the class will call static methods of the Python
<li>Calls to instance methods of the class will call instance methods of the
corresponding Python object instances.</li>
<li>Instance attributes can be accessed via the following special methods:</li>
<ul>
<li><b>_attributes</b> -- Get a list of attributes and their allowed values.&nbsp;</li>
<li><b>_getAttribute</b> -- Return the value of the
named attribute.</li>
<li><b>_setAttribute</b> <b><i>attributeName -- Set the named
attribute to the specified value. (Note: not all attributes can be modified).</li>
</ul>
<li>The Tcl programmer is allowed to add additional methods and/

<span style="font-size: 13.3333px;">or variables&nbsp;</span>to the&nbsp;

<span style="font-size: 13.3333px;">TclOO</span>&nbsp;class and/or instances of
the class, these will only be visble from Tcl.<br>
</li>
</ul>

<pre></pre>