12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html><head><title>Python: display</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>display</strong></big></big></font></td
- ><td align=right valign=bottom
- ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/hollis/Desktop/nakedmud/lib/pymodules/display.py">/Users/hollis/Desktop/nakedmud/lib/pymodules/display.py</a></font></td></tr></table>
- <p><tt>display.py<br>
- <br>
- Various utilities for displaying information such as tables and metered values.</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="math.html">math</a><br>
- </td><td width="25%" valign=top><a href="mud.html">mud</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="#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="-meter"><strong>meter</strong></a>(val, char<font color="#909090">='{p#'</font>, empty<font color="#909090">=' '</font>, lcap<font color="#909090">='['</font>, rcap<font color="#909090">=']'</font>, align<font color="#909090">='left'</font>, width<font color="#909090">=20</font>)</dt><dd><tt>Return a horizontal meter representing a numeric value ranging between<br>
- [0,1].</tt></dd></dl>
- <dl><dt><a name="-pagedlist"><strong>pagedlist</strong></a>(category_map, order<font color="#909090">=None</font>, header<font color="#909090">=None</font>, height<font color="#909090">=21</font>)</dt><dd><tt>Display lists of information as flips within a book. category_map is a<br>
- mapping between section headers and lists of entries to display for that<br>
- category. If you are only displaying one category, have a map from<br>
- the section header, Topics, to your list of entries. If the categories<br>
- should be displayed in a specific (or partially specific) order, that<br>
- can be specified. Header is text that can appear at front of the book<br>
- display.</tt></dd></dl>
- <dl><dt><a name="-table_row"><strong>table_row</strong></a>(info, align<font color="#909090">='left'</font>, caps<font color="#909090">='|'</font>, space<font color="#909090">=' '</font>, center_filler<font color="#909090">=' '</font>, width<font color="#909090">=79</font>)</dt><dd><tt>display a table row like this:<br>
- | info |</tt></dd></dl>
- <dl><dt><a name="-table_splitrow"><strong>table_splitrow</strong></a>(left, right, align<font color="#909090">='left'</font>, caps<font color="#909090">='|'</font>, space<font color="#909090">=' '</font>, center_filler<font color="#909090">=' '</font>, width<font color="#909090">=79</font>)</dt><dd><tt>display two columns like this:<br>
- | left | right |</tt></dd></dl>
- <dl><dt><a name="-table_splitrows"><strong>table_splitrows</strong></a>(left, right, align<font color="#909090">='left'</font>, caps<font color="#909090">='|'</font>, space<font color="#909090">=' '</font>, center_filler<font color="#909090">=' '</font>, width<font color="#909090">=79</font>)</dt><dd><tt>return a list of split rows</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>seperator</strong> = '-------------------------------------------------------------------------------'<br>
- <strong>table_border</strong> = '+-----------------------------------------------------------------------------+'<br>
- <strong>table_filler</strong> = '| |'</td></tr></table>
- </body></html>
|