Changes in src/sas/guiframe/documentation_window.py [9afc543:78bcf3c3] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/guiframe/documentation_window.py
r9afc543 r78bcf3c3 14 14 15 15 class DocumentationWindow(Frame): 16 def __init__(self, parent, id, path, title ='Help', size=(850, 540)):16 def __init__(self, parent, id, path, title, size=(850, 540)): 17 17 Frame.__init__(self, parent, id, title, size=size) 18 18 … … 26 26 docs_path = os.path.join(PATH_APP, "doc") 27 27 28 file_path = "file:///" + docs_path + "/" + path 29 28 30 if not os.path.exists(docs_path): 29 31 logging.error("Could not find Sphinx documentation at %s \ 30 32 -- has it been built?", docs_path) 31 32 33 elif wx_supports_html2: 33 34 # Complete HTML/CSS support! 34 35 self.view = html.WebView.New(self) 35 self.view.LoadURL( "file://" + docs_path + '\\' +path)36 self.view.LoadURL(file_path) 36 37 self.Show() 37 38 else: … … 40 41 #Red hat used at SNS for which Wx 3.0 is not available. This 41 42 #does not deal with issue of math in docs of course. 42 43 webbrowser.open_new_tab("file:///" + docs_path + "/" + path) 43 webbrowser.open_new_tab(file_path) 44 44 45 45
Note: See TracChangeset
for help on using the changeset viewer.