Changes in src/sas/guiframe/gui_manager.py [4d5c42f:8729965] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/guiframe/gui_manager.py
r4d5c42f r8729965 2129 2129 logging.error("Error in _onTutorial: %s" % sys.exc_value) 2130 2130 try: 2131 # Try an alternate method 2132 logging.error("Could not open the tutorial pdf, trying xhtml2pdf") 2133 from xhtml2pdf import pisa 2131 #in case when the pdf default set other than acrobat 2132 import ho.pisa as pisa 2134 2133 pisa.startViewer(path) 2135 2134 except: 2136 logging.error("Could not open the tutorial pdf with xhtml2pdf")2137 2135 msg = "This feature requires 'PDF Viewer'\n" 2136 msg += "Please install it first (Free)..." 2138 2137 wx.MessageBox(msg, 'Error') 2139 2138 else: … … 2143 2142 except: 2144 2143 try: 2145 # Try an alternate method 2146 logging.error("Could not open the tutorial pdf, trying xhtml2pdf") 2147 from xhtml2pdf import pisa 2144 #in case when the pdf default set other than preview 2145 import ho.pisa as pisa 2148 2146 pisa.startViewer(path) 2149 2147 except: 2150 logging.error("Could not open the tutorial pdf with xhtml2pdf")2151 msg = "This feature requires the 'Preview' application\n"2148 msg = "This feature requires 'Preview' Application\n" 2149 msg += "Please install it first..." 2152 2150 wx.MessageBox(msg, 'Error') 2153 2151 … … 2164 2162 from documentation_window import DocumentationWindow 2165 2163 2166 sphinx_doc_viewer = DocumentationWindow(self, -1, "index.html") 2167 # sphinx_doc_viewer.Show() 2168 2164 sphinx_doc_viewer = DocumentationWindow(self, -1, "index.html", \ 2165 "General Help") 2169 2166 2170 2167 def set_manager(self, manager):
Note: See TracChangeset
for help on using the changeset viewer.