- Timestamp:
- Jun 5, 2015 9:52:39 AM (10 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- f06bbf5, f9250dc
- Parents:
- 41eee5f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/guiframe/documentation_window.py
r41eee5f rdb41746 3 3 import wx 4 4 import webbrowser 5 import urllib 5 6 6 7 wx_supports_html2 = True … … 27 28 28 29 file_path = os.path.join(docs_path, path) 30 url = "file://" + urllib.quote(file_path) 29 31 30 32 if not os.path.exists(file_path): … … 34 36 # Complete HTML/CSS support! 35 37 self.view = html.WebView.New(self) 36 self.view.LoadURL( "file://" + file_path)38 self.view.LoadURL(url) 37 39 self.Show() 38 40 else: … … 42 44 #Red hat used at SNS for which Wx 3.0 is not available. This 43 45 #does not deal with issue of math in docs of course. 44 webbrowser.open_new_tab( "file://" + file_path)46 webbrowser.open_new_tab(url) 45 47 46 48 def main():
Note: See TracChangeset
for help on using the changeset viewer.