The modified pydoc_win32.py file is at the URL below.

ka
ps. If you're getting tired of seeing these small tweaks posted to the list,
please flame me directly ([EMAIL PROTECTED]) and I'll consider some
other forum for announcements; please don't do a flame reply to the whole
list ;-)
---
http://www.semi-retired.com/python/pythonwin/

pydoc_win32.py
This is a replacement for pydoc_win32.py in Python21\as_pydoc.
When you select "Find Module Documentation" or start
pydoc_win32 from the command prompt or Explorer the first line
of the contents of the clipboard minus any leading or trailing
space is automatically placed in the Search text field. That
way you can simply copy the text you are interested in while
working in PythonWin, open the module documentation search,
and hit the search button. Note that it is possible to get
close to this by simply typing Ctrl-V when the window comes
up in the standard implementation, but since there is no Edit menu
for the window, it isn't obvious, plus extra lines and white
space won't be stripped for you.

If Ping adds his CGI search at http://web.pydoc.org/ to the
standard pydoc.py install, then the documentation server
and this small tweak should become even more useful since
you'll be able to search for unqualified member names on
your local server.

However, until then this script also adds a "Web Search" button
that takes the contents of the search text field and launches
the browser to search web.pydoc.org. This search is much more
general and often more useful.

I'm tempted to modify the GUI and code further, so that the
search sites listed at http://www.python.org/search/ and
http://aspn.activestate.com/ASPN/Mail/ and some
others are selectable from a dropdown list, so you can quickly
search a variety of web sites in addition to your local pydoc
server. If you would like to see that addition, let me know.

I'm not sure if there is a better way to integrate this with
the local ActiveState Documentation .chm file, but I would like
to hear any ideas you might have.

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to