114 lines
9.7 KiB
HTML
114 lines
9.7 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module robofab.interface.all.dialogs</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.interface.html"><font color="#ffffff">interface</font></a>.<a href="robofab.interface.all.html"><font color="#ffffff">all</font></a>.dialogs</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/interface/all/dialogs.py">/code/projects/robofab/Lib/robofab/interface/all/dialogs.py</a></font></td></tr></table>
|
|
<p><tt>Dialogs. Not just for FontLab any more.<br>
|
|
Cross-platform and cross-application compatible. Mostly anyway.<br>
|
|
(Not all dialogs work on PCs outside of FontLab. Some dialogs are for FontLab only. Sorry.)<br>
|
|
<br>
|
|
Mac and FontLab implementation written by the RoboFab development team.<br>
|
|
PC implementation by Eigi Eigendorf and is (C)2002 Eigi Eigendorf.</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="os.html">os</a><br>
|
|
</td><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></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="robofab.interface.all.dialogs.html#ProgressBar">ProgressBar</a>
|
|
</font></dt></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="ProgressBar">class <strong>ProgressBar</strong></a></font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="ProgressBar-__init__"><strong>__init__</strong></a>(self, title<font color="#909090">='RoboFab...'</font>, ticks<font color="#909090">=0</font>, label<font color="#909090">=''</font>)</dt><dd><tt>A progress bar.<br>
|
|
Availability: FontLab, Mac</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ProgressBar-close"><strong>close</strong></a>(self)</dt><dd><tt>Close the progressbar.<br>
|
|
Availability: FontLab, Mac</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ProgressBar-getCurrentTick"><strong>getCurrentTick</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ProgressBar-label"><strong>label</strong></a>(self, label)</dt><dd><tt>Set the label on the progress bar.<br>
|
|
Availability: Mac</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ProgressBar-tick"><strong>tick</strong></a>(self, tickValue<font color="#909090">=None</font>)</dt><dd><tt>Tick the progress bar.<br>
|
|
Availability: FontLab, Mac</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="-AskString"><strong>AskString</strong></a>(prompt, value<font color="#909090">=''</font>, title<font color="#909090">='RoboFab'</font>)</dt><dd><tt>Returns entered string.<br>
|
|
Availability: FontLab, Macintosh</tt></dd></dl>
|
|
<dl><dt><a name="-AskYesNoCancel"><strong>AskYesNoCancel</strong></a>(prompt, title<font color="#909090">='RoboFab'</font>, default<font color="#909090">=0</font>)</dt><dd><tt>Returns 1 for 'Yes', 0 for 'No' and -1 for 'Cancel'.<br>
|
|
Availability: FontLab, Macintosh<br>
|
|
("default" argument only available on Macintosh)</tt></dd></dl>
|
|
<dl><dt><a name="-FindGlyph"><strong>FindGlyph</strong></a>(font, message<font color="#909090">='Search for a glyph:'</font>, title<font color="#909090">='RoboFab'</font>)</dt><dd><tt>Returns glyph instance if there is one, otherwise it returns None.<br>
|
|
Availability: FontLab</tt></dd></dl>
|
|
<dl><dt><a name="-GetDirectory"><strong>GetDirectory</strong></a> = GetFolder(message<font color="#909090">=None</font>)</dt><dd><tt>Select folder dialog. Returns path if one is selected. Otherwise it returns None.<br>
|
|
Availability: FontLab, Macintosh, PC</tt></dd></dl>
|
|
<dl><dt><a name="-GetFile"><strong>GetFile</strong></a>(message<font color="#909090">=None</font>)</dt><dd><tt>Select file dialog. Returns path if one is selected. Otherwise it returns None.<br>
|
|
Availability: FontLab, Macintosh, PC</tt></dd></dl>
|
|
<dl><dt><a name="-GetFolder"><strong>GetFolder</strong></a>(message<font color="#909090">=None</font>)</dt><dd><tt>Select folder dialog. Returns path if one is selected. Otherwise it returns None.<br>
|
|
Availability: FontLab, Macintosh, PC</tt></dd></dl>
|
|
<dl><dt><a name="-Message"><strong>Message</strong></a>(message, title<font color="#909090">='RoboFab'</font>)</dt><dd><tt>A simple message dialog.<br>
|
|
Availability: FontLab, Macintosh</tt></dd></dl>
|
|
<dl><dt><a name="-OneList"><strong>OneList</strong></a>(list, message<font color="#909090">='Select an item:'</font>, title<font color="#909090">='RoboFab'</font>)</dt><dd><tt>Returns selected item, otherwise it returns None.<br>
|
|
Availability: FontLab, Macintosh</tt></dd></dl>
|
|
<dl><dt><a name="-PutFile"><strong>PutFile</strong></a>(message<font color="#909090">=None</font>, defaultName<font color="#909090">=None</font>)</dt><dd><tt>Save file dialog. Returns path if one is entered. Otherwise it returns None.<br>
|
|
Availability: FontLab, Macintosh, PC</tt></dd></dl>
|
|
<dl><dt><a name="-SearchList"><strong>SearchList</strong></a>(list, message<font color="#909090">='Select an item:'</font>, title<font color="#909090">='RoboFab'</font>)</dt><dd><tt>Returns selected item, otherwise it returns None.<br>
|
|
Availability: FontLab</tt></dd></dl>
|
|
<dl><dt><a name="-SelectFont"><strong>SelectFont</strong></a>(message<font color="#909090">='Select a font:'</font>, title<font color="#909090">='RoboFab'</font>)</dt><dd><tt>Returns font instance if there is one, otherwise it returns None.<br>
|
|
Availability: FontLab</tt></dd></dl>
|
|
<dl><dt><a name="-SelectGlyph"><strong>SelectGlyph</strong></a>(font, message<font color="#909090">='Select a glyph:'</font>, title<font color="#909090">='RoboFab'</font>)</dt><dd><tt>Returns glyph instance if there is one, otherwise it returns None.<br>
|
|
Availability: FontLab</tt></dd></dl>
|
|
<dl><dt><a name="-TwoChecks"><strong>TwoChecks</strong></a>(title_1<font color="#909090">='One'</font>, title_2<font color="#909090">='Two'</font>, value1<font color="#909090">=1</font>, value2<font color="#909090">=1</font>, title<font color="#909090">='RoboFab'</font>)</dt><dd><tt>Returns check value:<br>
|
|
1 if check box 1 is checked<br>
|
|
2 if check box 2 is checked<br>
|
|
3 if both are checked<br>
|
|
0 if neither are checked<br>
|
|
None if cancel is clicked.<br>
|
|
<br>
|
|
Availability: FontLab, Macintosh</tt></dd></dl>
|
|
<dl><dt><a name="-TwoFields"><strong>TwoFields</strong></a>(title_1<font color="#909090">='One:'</font>, value_1<font color="#909090">='0'</font>, title_2<font color="#909090">='Two:'</font>, value_2<font color="#909090">='0'</font>, title<font color="#909090">='RoboFab'</font>)</dt><dd><tt>Returns (value 1, value 2).<br>
|
|
Availability: FontLab</tt></dd></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>MAC</strong> = True<br>
|
|
<strong>PC</strong> = False<br>
|
|
<strong>RoboFabError</strong> = 'RoboFabError'<br>
|
|
<strong>haveMacfs</strong> = False<br>
|
|
<strong>inFontLab</strong> = False<br>
|
|
<strong>pyVersion</strong> = (2, 3, 5)</td></tr></table>
|
|
</body></html> |