]> granicus.if.org Git - python/commit
Try to do for pydoc's GUI mode what the earlier checkin did for text
authorTim Peters <tim.peters@gmail.com>
Mon, 24 Sep 2001 04:47:19 +0000 (04:47 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 24 Sep 2001 04:47:19 +0000 (04:47 +0000)
commitb47879b239dc51e9c5df04578f06ae6aab4567f4
tree750a0eba1731790457e065501354d340f86b0e3b
parent2f60073d2dd37a471ca3c7df0a694230b32d1a57
Try to do for pydoc's GUI mode what the earlier checkin did for text
mode (identify the source class for class attrs; segregate attrs according
to source class, and whether class method, static method, property, plain
method, or data; display data attrs; display docstrings for data attrs
when possible).

Alas, this is mondo ugly, and I'm no HTML guy.  Part of the problem is
that pydoc's GUI mode has always been ugly under IE, largely because
<small> under IE renders docstrings unreadably small (while sometimes
non-docstring text is painfully large).  Another part is that these
segregated listings of attrs would *probably* look much better as bulleted
lists.  Alas, when I tried that, the bullets all ended up on lines by
themselves, before the method names; this is apparently because pydoc
(ab?)uses definition lists for format effects, and at least under IE
if a definition list is the first chunk of a list item, it gets rendered
on a line after the <li> bullet.

An HTML wizard would certainly be welcomed here.
Lib/pydoc.py