Python class tree viewer (with wxPython)

Robin Becker robin at jessikat.co.uk
Mon Jun 26 04:26:28 EDT 2000


In article <3956D541.4471726E at coolest.com>, Alexander Schonfeld
<alex at coolest.com> writes
>Which algorithm is that? :)

There are many; I remember one from Dr Dobbs last year, August I think.
They used a variant of the spring model. Try searching graph+drawing :)

>
>I wish I had payed more attention in alg analysis now.
>
>Alex.
>
>Robin Becker wrote:
>> 
>> In article <3951AA42.13155B89 at coolest.com>, Alexander Schonfeld
>> <alex at coolest.com> writes
>> >Hi,
>> >
>> >I wrote (I mean hacked a demo...for wxOGL) to show class trees of bunches of
>> >python files.  You can then move them around and take screen shots and bask 
>in
>> >the glory that is your python classes.
>> >
>> >To use:
>> >       python pyinherit.py d:\cvs\Zope2\lib\python\Products\LoginManager
>> >       python pyinherit.py [specific .py files and dirs... whatever you want]
>> >Dirs are recursively traversed with 'walk'... looking for py files.
>> >etc...
>> >
>> >It requires wxPython (a gui lib) from:
>> >       http://wxpython.org/
>> >
>> >Please expand on this if it looks interesting, and email me a copy.
>> >
>> >Thanks,
>> >
>> >Alex.
>> >
>> ...
>> Wow! Now all we need is to apply that algorithm which tries to draw the
>> diagram decently in planar form.
>> --
>> Robin Becker
>
>--
>--
>--> Software ---> http://Coolest.com
>-----> Art -----> http://Sk8r.net
>-------------------------------------

-- 
Robin Becker



More information about the Python-list mailing list