100 lines
7.8 KiB
HTML
100 lines
7.8 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module robofab.tools.remote</title>
|
|
</head><body bgcolor="#f0f0f8">
|
|
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
<tr bgcolor="#7799ee">
|
|
<td valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="robofab.html"><font color="#ffffff">robofab</font></a>.<a href="robofab.tools.html"><font color="#ffffff">tools</font></a>.remote</strong></big></big></font></td
|
|
><td align=right valign=bottom
|
|
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/code/projects/robofab/Lib/robofab/tools/remote.py">/code/projects/robofab/Lib/robofab/tools/remote.py</a></font></td></tr></table>
|
|
<p><tt>Remote control for MacOS <a href="#FontLab">FontLab</a>.<br>
|
|
<a href="#-initFontLabRemote">initFontLabRemote</a>() registers a callback for appleevents and<br>
|
|
<a href="#-runFontLabRemote">runFontLabRemote</a>() sends the code from a different application,<br>
|
|
such as a Mac Python IDE or Python interpreter.</tt></p>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#aa55cc">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
|
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ee77aa">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl>
|
|
<dt><font face="helvetica, arial"><a href="aetools.html#TalkTo">aetools.TalkTo</a>
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="robofab.tools.remote.html#FontLab">FontLab</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
</dl>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="FontLab">class <strong>FontLab</strong></a>(<a href="aetools.html#TalkTo">aetools.TalkTo</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%">Methods inherited from <a href="aetools.html#TalkTo">aetools.TalkTo</a>:<br>
|
|
<dl><dt><a name="FontLab-__getattr__"><strong>__getattr__</strong></a>(self, name)</dt></dl>
|
|
|
|
<dl><dt><a name="FontLab-__init__"><strong>__init__</strong></a>(self, signature<font color="#909090">=None</font>, start<font color="#909090">=0</font>, timeout<font color="#909090">=0</font>)</dt><dd><tt>Create a communication channel with a particular application.<br>
|
|
<br>
|
|
Addressing the application is done by specifying either a<br>
|
|
4-byte signature, an AEDesc or an object that will __aepack__<br>
|
|
to an AEDesc.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="FontLab-activate"><strong>activate</strong></a>(self)</dt><dd><tt>Send 'activate' command</tt></dd></dl>
|
|
|
|
<dl><dt><a name="FontLab-get"><strong>get</strong></a> = _get(self, _object, as<font color="#909090">=None</font>, _attributes<font color="#909090">={}</font>)</dt><dd><tt>_get: get data from an object<br>
|
|
Required argument: the object<br>
|
|
Keyword argument _attributes: AppleEvent attribute dictionary<br>
|
|
Returns: the data</tt></dd></dl>
|
|
|
|
<dl><dt><a name="FontLab-newevent"><strong>newevent</strong></a>(self, code, subcode, parameters<font color="#909090">={}</font>, attributes<font color="#909090">={}</font>)</dt><dd><tt>Create a complete structure for an apple event</tt></dd></dl>
|
|
|
|
<dl><dt><a name="FontLab-send"><strong>send</strong></a>(self, code, subcode, parameters<font color="#909090">={}</font>, attributes<font color="#909090">={}</font>)</dt><dd><tt>Send an appleevent given code/subcode/pars/attrs and unpack the reply</tt></dd></dl>
|
|
|
|
<dl><dt><a name="FontLab-sendevent"><strong>sendevent</strong></a>(self, event)</dt><dd><tt>Send a pre-created appleevent, await the reply and unpack it</tt></dd></dl>
|
|
|
|
<dl><dt><a name="FontLab-set"><strong>set</strong></a> = _set(self, _object, _attributes<font color="#909090">={}</font>, **_arguments)</dt><dd><tt>set: Set an object's data.<br>
|
|
Required argument: the object for the command<br>
|
|
Keyword argument to: The new value.<br>
|
|
Keyword argument _attributes: AppleEvent attribute dictionary</tt></dd></dl>
|
|
|
|
<dl><dt><a name="FontLab-start"><strong>start</strong></a>(self)</dt><dd><tt>Deprecated, used _start()</tt></dd></dl>
|
|
|
|
</td></tr></table></td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#eeaa77">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt><a name="-Glyph2String"><strong>Glyph2String</strong></a>(glyph)</dt></dl>
|
|
<dl><dt><a name="-String2Glyph"><strong>String2Glyph</strong></a>(gString, penClass, font)</dt></dl>
|
|
<dl><dt><a name="-initFontLabRemote"><strong>initFontLabRemote</strong></a>()</dt><dd><tt>Call this in <a href="#FontLab">FontLab</a> at startup of the application to switch on the remote.</tt></dd></dl>
|
|
<dl><dt><a name="-makeVFB"><strong>makeVFB</strong></a>(sourcePathUFO, destinationPathVFB<font color="#909090">=None</font>)</dt><dd><tt><a href="#FontLab">FontLab</a> convenience function to import a UFO and save it as a VFB</tt></dd></dl>
|
|
<dl><dt><a name="-os9PathConvert"><strong>os9PathConvert</strong></a>(path)</dt><dd><tt>Attempt to convert a unix style path to a Mac OS9 style path.<br>
|
|
No support for relative paths!</tt></dd></dl>
|
|
<dl><dt><a name="-receiveGlyph"><strong>receiveGlyph</strong></a>(glyphString, font<font color="#909090">=None</font>)</dt></dl>
|
|
<dl><dt><a name="-runFontLabRemote"><strong>runFontLabRemote</strong></a>(code)</dt><dd><tt>Call this in the MacOS Python IDE to make <a href="#FontLab">FontLab</a> execute the code.</tt></dd></dl>
|
|
<dl><dt><a name="-transmitGlyph"><strong>transmitGlyph</strong></a>(glyph)</dt></dl>
|
|
</td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#55aa55">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
|
<td width="100%"><strong>__all__</strong> = ['initFontLabRemote', 'runFontLabRemote']<br>
|
|
<strong>world</strong> = [Robofab is running on darwin. Python version: 2...uff: None, FontLab stuff: False, FLversion: None]</td></tr></table>
|
|
</body></html> |