473,320 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

windows help files ?

Hello,

I've 2 questions about python help files:

1. how can I launch the windows help file (CHM), from python with a
keyword as argument ?

2. now when my program should also run under Linux/Mac, how should I
call the help file under Linux/Mac.

Going to the website for the help information is not an option.

thanks,
Stef
Oct 2 '08 #1
4 2423
On Oct 2, 9:13*am, Stef Mientki <stef.mien...@gmail.comwrote:
Hello,

I've 2 questions about python help files:

1. how can I launch the windows help file (CHM), from python *with a
keyword as argument ?

2. now when my program should also run under Linux/Mac, *how should I
call the help file *under Linux/Mac.

Going to the website for the help information is not an option.

thanks,
Stef
You say that you can't send them to a website for help files. Can you
make the help files HTML and launch them locally in a browser (no
internet connection required)? That would enable you to use the same
mechanism on all platforms.

Daniel
Oct 2 '08 #2
1. how can I launch the windows help file (CHM), from python with a
keyword as argument ?
Run hh.exe. If you want it to navigate to specific page, also pass that
page on the command line (finding out the exact syntax is left as an
exercise)
2. now when my program should also run under Linux/Mac, how should I
call the help file under Linux/Mac.
Provide an HTML tree of the documentation, and use the webbrowser module
to start a browser on it.

Regards,
Martin
Oct 3 '08 #3
Martin v. Löwis wrote:
>1. how can I launch the windows help file (CHM), from python with a
keyword as argument ?

Run hh.exe. If you want it to navigate to specific page, also pass that
page on the command line (finding out the exact syntax is left as an
exercise)

That's one way,
in the meanwhile I found win32help.py,
which I finally got to work.
The whole hh.exe (seems also to be a wellknown virus) and win32help
documentation is very hard to find.
>2. now when my program should also run under Linux/Mac, how should I
call the help file under Linux/Mac.

Provide an HTML tree of the documentation, and use the webbrowser module
to start a browser on it.
Yes, but for context sensitive help that's a little bit primitive.
I'm now working on the idea of offering 3 levels of context sensitive
help (through F1, shift-F1, ctrl-F1):
- standard doc ( chm-keyword / html-tag )
- search on google
- help from a user defined location ( chm / html / search engine / txt /
pdf )

thanks again,
cheers,
Stef

Oct 3 '08 #4
En Fri, 03 Oct 2008 09:07:21 -0300, Stef Mientki <st**********@gmail.com>
escribió:
Martin v. Löwis wrote:
>>1. how can I launch the windows help file (CHM), from python with a
keyword as argument ?

Run hh.exe. If you want it to navigate to specific page, also pass that
page on the command line (finding out the exact syntax is left as an
exercise)
That's one way,
in the meanwhile I found win32help.py,
which I finally got to work.
The whole hh.exe (seems also to be a wellknown virus) and win32help
documentation is very hard to find.
hh.exe is part of the Windows OS and is included on all non-prehistoric
Windows versions. See http://support.microsoft.com/dllhelp/
win32help is part of the pywin32 package - but it's just a thin wrapper
around the help API. The authoritative documentation source should be the
Microsoft site: http://msdn.microsoft.com/en-us/library/cc196383.aspx

--
Gabriel Genellina

Oct 3 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
4
by: Abhishek Srivastava | last post by:
Hello All, Many people ask this question. I have installed .Net framework I wrote a program but I can't find csc.exe. I have to tell them that it is inside windows directory. But I myself don't...
6
by: Charles Neitzel | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running...
1
by: Charles | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running...
3
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
12
by: pac | last post by:
I'm preparing to distribute a Windows XP Python program and some ancillary files, and I wanted to put everything in a .ZIP archive. It proved to be inordinately difficult and I thought I would...
2
by: zacks | last post by:
I use some shareware CD/DVD burning software that has a command line interface version. This allowed me to write my own custom SDK that performs various CD/DVD burning operations from my own VB.NET...
10
by: dermot | last post by:
I have wrriten a small windows service application in visual studio ..net 2003 which listens for incoming FTP files. These files would overwrite over time due to duplicate file names. However any...
2
by: =?Utf-8?B?SnJ4dHVzZXIx?= | last post by:
I just started using Windows Live OneCare, I had been using Norton, but was unable to fix the problems I was having. I have yet been unsuccessful with OneCare as well. I keep getting the same...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.