Help System For Python Applications

R

redefined.horizons

I did some searching for this topic, but couldn't find anything. A
search of this list only turned up an old post from 2002.

I'd like to add a comprehesive help system to my Python Application. By
"comprehensive" I mean regular "read-like-a-book" help and context
sensitive help that can be launched from the application.

Is there an existing system in Python that would support this, or would
I need to start from scratch?

On a related note, is there a way to fire up Adobe's Acorbat Reader or
and Web Browser from Python and have the external application open a
specified PDF or HTML file? (For example, I want to open the file
"myhelp.pdf" in reader from Python code.)

Could you give me an example of the code that would do this?

Thanks for all the help on my help. :]

Scott Huey
 
J

johnzenger

On a related note, is there a way to fire up Adobe's Acorbat Reader or
and Web Browser from Python and have the external application open a
specified PDF or HTML file? (For example, I want to open the file
"myhelp.pdf" in reader from Python code.)

The webbrowser module lets you open any page. HTML will open in the
user's default web browser; PDF opens in Acrobat (at least on my
Windows machine).
 
H

Harold Fellermann

I usually go for the webbrowser package that allows me to launch the
systems webbrowser and opens my html help files. It is really simple:

and thats all there is to do.

- harold -
 
B

bruno at modulix

I did some searching for this topic, but couldn't find anything. A
search of this list only turned up an old post from 2002.

I'd like to add a comprehesive help system to my Python Application. By
"comprehensive" I mean regular "read-like-a-book" help and context
sensitive help that can be launched from the application.

Is there an existing system in Python that would support this, or would
I need to start from scratch?

This depends on the system and UI, so their can be no one-size-fits-all
builtin solution. Hint : look at how other programs using the same
system and UI solved the problem.
On a related note, is there a way to fire up Adobe's Acorbat Reader or
and Web Browser from Python and have the external application open a
specified PDF or HTML file? (For example, I want to open the file
"myhelp.pdf" in reader from Python code.)

os.system() may be a good start.

HTH
 
R

redefined.horizons

Thanks for the responses. I'll check out the web browser module, and
I'll make sure that I release any work ona help system to the
community.

Scott Huey
 
P

Paul Boddie

bruno said:
os.system() may be a good start.

Take a look at the desktop module for a partial solution:

http://www.python.org/pypi/desktop

An example:

import desktop
desktop.open("itools-0.9.0.pdf")

Apparently, os.startfile will expose (or already exposes) other
parameters which may specify that the file be printed, amongst other
things. I may well add such functionality to the desktop module, since
various non-Windows systems have supported such things for a while.

Paul
 
R

redefined.horizons

Thanks for the link Paul. It looks like you've done some good work on
that module.

I'll check it out.

Scott
 
B

BartlebyScrivener

At the commandline, run:

pydoc -g

In the interpreter:

help("modulename")

or help ()

for interactive.

Are you on Windows? Using ActivePython? Or the Python.org download?

rd
 
B

bruno at modulix

BartlebyScrivener said:
At the commandline, run:

pydoc -g

In the interpreter:

help("modulename")

or help ()

for interactive.

This is developper doc. I think the OP's talking about end-user doc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,297
Messages
2,571,525
Members
48,249
Latest member
reactnativeexpert

Latest Threads

Top