display.html 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><title>Python: display</title>
  3. </head><body bgcolor="#f0f0f8">
  4. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
  5. <tr bgcolor="#7799ee">
  6. <td valign=bottom>&nbsp;<br>
  7. <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>display</strong></big></big></font></td
  8. ><td align=right valign=bottom
  9. ><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>
  10. <p><tt>display.py<br>
  11. &nbsp;<br>
  12. Various&nbsp;utilities&nbsp;for&nbsp;displaying&nbsp;information&nbsp;such&nbsp;as&nbsp;tables&nbsp;and&nbsp;metered&nbsp;values.</tt></p>
  13. <p>
  14. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  15. <tr bgcolor="#aa55cc">
  16. <td colspan=3 valign=bottom>&nbsp;<br>
  17. <font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
  18. <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  19. <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="math.html">math</a><br>
  20. </td><td width="25%" valign=top><a href="mud.html">mud</a><br>
  21. </td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
  22. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  23. <tr bgcolor="#eeaa77">
  24. <td colspan=3 valign=bottom>&nbsp;<br>
  25. <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
  26. <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  27. <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&nbsp;a&nbsp;horizontal&nbsp;meter&nbsp;representing&nbsp;a&nbsp;numeric&nbsp;value&nbsp;ranging&nbsp;between<br>
  28. [0,1].</tt></dd></dl>
  29. <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&nbsp;lists&nbsp;of&nbsp;information&nbsp;as&nbsp;flips&nbsp;within&nbsp;a&nbsp;book.&nbsp;category_map&nbsp;is&nbsp;a<br>
  30. mapping&nbsp;between&nbsp;section&nbsp;headers&nbsp;and&nbsp;lists&nbsp;of&nbsp;entries&nbsp;to&nbsp;display&nbsp;for&nbsp;that<br>
  31. category.&nbsp;If&nbsp;you&nbsp;are&nbsp;only&nbsp;displaying&nbsp;one&nbsp;category,&nbsp;have&nbsp;a&nbsp;map&nbsp;from<br>
  32. the&nbsp;section&nbsp;header,&nbsp;Topics,&nbsp;to&nbsp;your&nbsp;list&nbsp;of&nbsp;entries.&nbsp;If&nbsp;the&nbsp;categories<br>
  33. should&nbsp;be&nbsp;displayed&nbsp;in&nbsp;a&nbsp;specific&nbsp;(or&nbsp;partially&nbsp;specific)&nbsp;order,&nbsp;that<br>
  34. can&nbsp;be&nbsp;specified.&nbsp;Header&nbsp;is&nbsp;text&nbsp;that&nbsp;can&nbsp;appear&nbsp;at&nbsp;front&nbsp;of&nbsp;the&nbsp;book<br>
  35. display.</tt></dd></dl>
  36. <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&nbsp;a&nbsp;table&nbsp;row&nbsp;like&nbsp;this:<br>
  37. |&nbsp;info&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</tt></dd></dl>
  38. <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&nbsp;two&nbsp;columns&nbsp;like&nbsp;this:<br>
  39. |&nbsp;left&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;right&nbsp;&nbsp;&nbsp;&nbsp;|</tt></dd></dl>
  40. <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&nbsp;a&nbsp;list&nbsp;of&nbsp;split&nbsp;rows</tt></dd></dl>
  41. </td></tr></table><p>
  42. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  43. <tr bgcolor="#55aa55">
  44. <td colspan=3 valign=bottom>&nbsp;<br>
  45. <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
  46. <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  47. <td width="100%"><strong>seperator</strong> = '-------------------------------------------------------------------------------'<br>
  48. <strong>table_border</strong> = '+-----------------------------------------------------------------------------+'<br>
  49. <strong>table_filler</strong> = '| |'</td></tr></table>
  50. </body></html>