Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/guiframe/documentation_window.py

    r78bcf3c3 r9afc543  
    1414 
    1515class DocumentationWindow(Frame): 
    16     def __init__(self, parent, id, path, title, size=(850, 540)): 
     16    def __init__(self, parent, id, path, title='Help', size=(850, 540)): 
    1717        Frame.__init__(self, parent, id, title, size=size) 
    1818 
     
    2626            docs_path = os.path.join(PATH_APP, "doc") 
    2727 
    28         file_path = "file:///" + docs_path + "/" + path 
    29  
    3028        if not os.path.exists(docs_path): 
    3129            logging.error("Could not find Sphinx documentation at %s \ 
    3230            -- has it been built?", docs_path) 
     31 
    3332        elif wx_supports_html2: 
    3433            # Complete HTML/CSS support! 
    3534            self.view = html.WebView.New(self) 
    36             self.view.LoadURL(file_path) 
     35            self.view.LoadURL("file://" + docs_path + '\\' + path) 
    3736            self.Show() 
    3837        else:  
     
    4140            #Red hat used at SNS for which Wx 3.0 is not available.  This 
    4241            #does not deal with issue of math in docs of course.  
    43             webbrowser.open_new_tab(file_path) 
     42 
     43            webbrowser.open_new_tab("file:///" + docs_path + "/" + path) 
    4444 
    4545  
Note: See TracChangeset for help on using the changeset viewer.