views:

42

answers:

2

I have a simple Tkinter app in Python. I'd like to add help document to it; what is the simplest way to integrate an help viewer to the app? Preferably cross-platform (although I primarily use Windows)?

I can imagine writing the help in plain HTML.

A: 

You could stick with writting in html, and then using something like this: Tkhtml which displays html pretty well and is fairly lightweight. :)

And here is the python wrapper. I hope this helps.

Fabzter
+1  A: 

Or just launch an external web browser, using the webbrowser module from the standard library.

import webbrowser
webbrowser.open('/path/to/help/file.html')

For writing your documentation, have a look at sphinx.

codeape
I didn't ask this in the original question, but one advantage of using a native help viewer is the **search** functionality. I believe sphinx has a json-based search; and that should probably meet my modest needs. Thanks
Sridhar Ratnakumar