Changeset d66dbcc in sasview for src/sas/sasgui/guiframe
- Timestamp:
- May 2, 2017 7:17:05 PM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 2f6d340
- Parents:
- 914ba0a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/documentation_window.py
r914ba0a rd66dbcc 1 """2 documentation module provides a simple means to add help throughout the3 application. It checks for the existence of html2 package needed to support4 fully html panel which supports css. The class defined here takes a title for5 the particular help panel, a pointer to the html documentation file of interest6 within the documentation tree along with a 'command' string such as a page7 anchor or a query string etc. The path to the doc directory is retrieved8 automatically by the class itself. Thus with these three pieces of information9 the class generates a panel with the appropriate title bar and help file10 formatted according the style sheets called in the html file. Finally, if an11 old version of Python is running and the html2 package is not available the12 class brings up the default browser and passes the file:/// string to it. In13 this case however the instruction portion is usually not passed for security14 reasons.15 """16 import os17 import logging18 import urllib19 20 import webbrowser21 import wx22 23 from sas.sasgui import get_app_dir24 25 SPHINX_DOC_ENV = "SASVIEW_DOC_PATH"26 WX_SUPPORTS_HTML2 = True27 try:28 import wx.html2 as html29 except:30 WX_SUPPORTS_HTML2 = False31 32 33 =======34 1 """ 35 2 documentation module provides a simple means to add help throughout the
Note: See TracChangeset
for help on using the changeset viewer.