
    d	                     V    d Z ddlZddlZd Zej                  fdZedk(  r e        yy)aX  
helpviewer.py   --  Displays HTML Help in a wxHtmlHelpController window.

Usage:
    helpviewer [--cache=path] helpfile [helpfile(s)...]

    Where helpfile is the path to either a .hhp file or a .zip file
    which contains a .hhp file.  The .hhp files are the same as those
    used by Microsoft's HTML Help Workshop for creating CHM files.
    Nc                 N    dd l }| j                         }|j                  |      }y )Nr   )wxGetFrameFrame)helpctrlr   parent
otherFrames       5/usr/lib/python3/dist-packages/wx/tools/helpviewer.pymakeOtherFramer      s!     F&!J    c                 j   t        |       dk  rt        t               y | dd  } d }| d   d d dk(  r9t        j                  j                  | d   j                  d      d         }| dd  } t        |       dk(  rt        t               y dd l}dd l}|j                         }|j                  j                  |j                         |j                  d       |j                  d       |j                  j!                         }|j"                  j%                  |j'                                |j(                  j+                         }|r|j-                  |       | D ]"  }t        d	|z         |j/                  |d       $ |j1                  t2        |       |j5                          |j7                          y )
N      r      z--cache=	wxWindows
helpviewerzAdding %s...)lenprint__doc__ospath
expandusersplitr   wx.htmlAppLogSetLogLevel	LOG_ErrorSetVendorName
SetAppName
ConfigBaseGet
FileSystem
AddHandlerArchiveFSHandlerhtmlHtmlHelpController
SetTempDirAddBook	CallAfterr   DisplayContentsMainLoop)argscachedirr   appcfgr   helpfiles          r
   mainr3   #   sk   
4y1}g8DHAwr{i77%%d1gmmC&8&;<ABx
4yA~g
&&(CFFr||$ k"NN< 
--


C MMR0023 ww))+HH%  &nx'(1%& LL* LLNr   __main__)r   sysr   r   argvr3   __name__ r   r
   <module>r9      s7   	 " hh 3l zF r   