[Thomas] >[Hernan] >> Standard .chm format already includes useful index data to do >> context-sensitive search. A couple of years ago I made an Idle >> extension to manage this. It wasn't difficult then, and I think it's >> even easier now. The problem I found is that you pass the selected >> text (the one you are looking for) to HTMLHelp system by calling a >> Win32 API. > I know this, and how to do the windows side. What I meant was that I > don't know enough about IDLE (or Tkinter) to implement the > functionality to find the word under the cursor. I'm pretty sure that some IDLE extension used to have such functionality. It wasn't that difficult. It was a patch I did a couple of years now and wasn't finish. If I can find it I'll tell you my approach. >> You'll need win32all installed. That's the way PythonWin works, by >> the way. I guess this makes it a no-no for standard Python, right? >> > I don't think win32all wraps the HTMLHelp api, does it? Yes, it does. I think Mark(?) did it for his PythonWin IDE. > OTOH, I'm waiting for a reason to include ctypes with core python ;-) So there is one. ;-) -Hernan
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4