I am developing a GUI application in wxPython on linux.
I have to provide help menu describing tool's usage.
I am not able to get any modules realated to this.Can anybody know how to develope help in wxPython?
Python allows you to add documentation strings to a class, module or method and access it later ...
# a look at the Python documentation string
# you can just use single quotes for a one liner
def getDistance(x1, y1, x2, y2):
getDistance(x1, y1, x2, y2)
returns distance between two points using the pythagorean theorem
the function parameters are the coordinates of the two points
dx = x2 - x1
dy = y2 - y1
return math.sqrt(dx**2 + dy**2)
print "Distance between point(1,3) and point(4,7) is", getDistance(1,3,4,7)
print "The function's documentation string:"
# shows comment between the triple quotes, use double underline each side
With wxPython you can use a button marked help that brings up a dialog window containing help text.
thx but this is not wht i m looking for.
It's to give help to understand the code! I m in need of Help creation which will guide user how to use the application.
for e.g. in .Net we can do it by developing .chm files.