[spambayes-dev] Re: [Spambayes] Error from pop3proxy

Mark Hammond mhammond at skippinet.com.au
Mon Oct 6 09:29:37 EDT 2003


[Tim]
> Maybe you can borrow IDLE's trick?  (I can launch the .chm 
> via IDLE's Help
> -> Python Docs and all works well.)  IDLE simply does
> 
>     os.startfile(path_to_chm_file)

Yeah.  I keep trying to be smart beyond my capabilities <wink>.  I just
checked in:

Index: Pythonwin/pywin/framework/help.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/help.py,v
retrieving revision 1.7
diff -r1.7 help.py
39c39,42
<               elif ext == ".chm":
---
>               # XXX - using the htmlhelp API wreaks havoc with keyboard
shortcuts
>               # so we disable it, forcing ShellExecute, which works fine
(but
>               # doesn't close the help file when Pythonwin is closed.
>               elif 0 and ext == ".chm":

(I didn't bother with the context diff, but the following 'else' clause
calls win32api.ShellExecute() for the file (as this code predates
os.startfile()).

>From inside pythonwin - Ctrl+L -> 'pywin.framework.help' will open this
file, then Ctrl+G -> '39', and you are ready to roll ;)

Mark. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2192 bytes
Desc: not available
Url : http://mail.python.org/pipermail/spambayes-dev/attachments/20031006/4647106e/winmail.bin


More information about the spambayes-dev mailing list