windows help files ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stef Mientki

    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
  • Daniel

    #2
    Re: windows help files ?

    On Oct 2, 9:13 am, Stef Mientki <stef.mien...@g mail.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

    Comment

    • =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

      #3
      Re: windows help files ?

      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

      Comment

      • Stef Mientki

        #4
        Re: windows help files ?

        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

        Comment

        • Gabriel Genellina

          #5
          Re: windows help files ?

          En Fri, 03 Oct 2008 09:07:21 -0300, Stef Mientki <stef.mientki@g mail.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

          Comment

          Working...