Changeset 3db44fb in sasview
- Timestamp:
- Jun 7, 2015 9:33:19 PM (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:
- 4b5fe655
- Parents:
- f06bbf5
- Location:
- src/sas
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/guiframe/documentation_window.py
rf06bbf5 r3db44fb 15 15 16 16 class DocumentationWindow(wx.Frame): 17 def __init__(self, parent, id, path, title, size=(850, 540)):17 def __init__(self, parent, id, path, url_instruction, title, size=(850, 540)): 18 18 wx.Frame.__init__(self, parent, id, title, size=size) 19 19 … … 28 28 29 29 file_path = os.path.join(docs_path, path) 30 url = "file:///" + urllib.quote(file_path,'\:') 30 url = "file:///" + urllib.quote(file_path,'\:')+ url_instruction 31 31 32 32 if not os.path.exists(file_path): … … 48 48 def main(): 49 49 app = wx.App() 50 DocumentationWindow(None, -1, "index.html", " Documentation",)50 DocumentationWindow(None, -1, "index.html", "", "Documentation",) 51 51 app.MainLoop() 52 52 -
src/sas/guiframe/gui_manager.py
r5276eeb r3db44fb 44 44 from sas.dataloader.loader import Loader 45 45 from matplotlib import _pylab_helpers 46 from documentation_window import DocumentationWindow 46 47 47 48 def get_app_dir(): … … 2165 2166 # Running SasView "in-place" using run.py means the docs will be in a 2166 2167 # different place than they would otherwise. 2167 from documentation_window import DocumentationWindow 2168 DocumentationWindow(self, -1, "index.html", "General Help") 2168 DocumentationWindow(self, -1, "index.html", "", "SasView Documentation") 2169 2169 2170 2170 def set_manager(self, manager): -
src/sas/perspectives/calculator/data_operator.py
ra27e8b8 r3db44fb 635 635 636 636 _TreeLocation = "user/perspectives/calculator/data_operator_help.html" 637 _doc_viewer = DocumentationWindow(self, -1, \638 _TreeLocation,"Data Operation Help")637 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 638 "Data Operation Help") 639 639 640 640 def disconnect_panels(self): -
src/sas/perspectives/calculator/density_panel.py
rd5419f7f r3db44fb 385 385 386 386 _TreeLocation = "user/perspectives/calculator/density_calculator_help.html" 387 _doc_viewer = DocumentationWindow(self, -1, \388 _TreeLocation,"Density/Volume Calculator Help")387 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 388 "Density/Volume Calculator Help") 389 389 390 390 def on_close(self, event): -
src/sas/perspectives/calculator/gen_scatter_panel.py
rd5419f7f r3db44fb 914 914 915 915 _TreeLocation = "user/perspectives/calculator/sas_calculator_help.html" 916 _doc_viewer = DocumentationWindow(self, -1, \917 _TreeLocation,"General Scattering Calculator Help")916 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 917 "General Scattering Calculator Help") 918 918 919 919 def _check_value(self): -
src/sas/perspectives/calculator/image_viewer.py
r49ab5d7 r3db44fb 150 150 151 151 _TreeLocation = "user/perspectives/calculator/image_viewer_help.html" 152 _doc_viewer = DocumentationWindow(self, -1, \153 _TreeLocation,"Image Viewer Help")152 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 153 "Image Viewer Help") 154 154 155 155 -
src/sas/perspectives/calculator/kiessig_calculator_panel.py
rd5419f7f r3db44fb 173 173 """ 174 174 _TreeLocation = "user/perspectives/calculator/kiessig_calculator_help.html" 175 _doc_viewer = DocumentationWindow(self, -1, 176 _TreeLocation, 175 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 177 176 "Density/Volume Calculator Help") 178 177 -
src/sas/perspectives/calculator/resolution_calculator_panel.py
rd5419f7f r3db44fb 642 642 643 643 _TreeLocation = "user/perspectives/calculator/resolution_calculator_help.html" 644 _doc_viewer = DocumentationWindow(self, -1, 645 _TreeLocation,"Resolution Calculator Help")644 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 645 "Resolution Calculator Help") 646 646 647 647 def on_close(self, event): -
src/sas/perspectives/calculator/sld_panel.py
rd5419f7f r3db44fb 326 326 327 327 _TreeLocation = "user/perspectives/calculator/sld_calculator_help.html" 328 _doc_viewer = DocumentationWindow(self, -1, \329 _TreeLocation,"General Scattering Calculator Help")328 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 329 "General Scattering Calculator Help") 330 330 331 331 def on_close(self, event): -
src/sas/perspectives/calculator/slit_length_calculator_panel.py
rd5419f7f r3db44fb 187 187 188 188 _TreeLocation = "user/perspectives/calculator/slit_calculator_help.html" 189 _doc_viewer = DocumentationWindow(self, -1, \190 _TreeLocation,"Slit Length Calculator Help")189 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 190 "Slit Length Calculator Help") 191 191 192 192 def on_close(self, event): -
src/sas/perspectives/fitting/basepage.py
r373d4ee r3db44fb 2847 2847 """ 2848 2848 2849 if self.model == None: 2850 name = 'index.html' 2849 _TreeLocation = 'user/models/model_functions.html' 2850 if self.model != None: 2851 name = self.formfactorbox.GetValue() 2852 _PageAnchor = '#' + name 2853 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, 2854 _PageAnchor, name + "Help") 2851 2855 else: 2852 name = self.formfactorbox.GetValue() 2853 2854 if self.model != None: 2855 _docspath = 'user/models/model_functions.html#' + name 2856 _doc_viewer = DocumentationWindow(self, -1, _docspath, name + "Help") 2857 else: 2858 _doc_viewer = DocumentationWindow(self, -1, "index.html", \ 2859 "General Help") 2856 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 2857 "General Model Help") 2860 2858 2861 2859 … … 2908 2906 2909 2907 _TreeLocation = "_images/M_angles_pic.bmp" 2910 _doc_viewer = DocumentationWindow(self, -1, \2911 _TreeLocation,"Magnetic Angle Defintions")2908 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 2909 "Magnetic Angle Defintions") 2912 2910 2913 2911 def _on_mag_on(self, event): … … 2954 2952 2955 2953 _TreeLocation = "user/perspectives/fitting/fitting_help.html" 2956 _ TreeLocation += "#polydispersity-distributions"2957 _doc_viewer = DocumentationWindow(self, -1, \2958 _TreeLocation, "Polydispersity Help")2954 _PageAnchor = "#polydispersity-distributions" 2955 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, 2956 _PageAnchor, "Polydispersity Help") 2959 2957 2960 2958 def on_left_down(self, event): -
src/sas/perspectives/invariant/invariant_panel.py
rcce0ad3 r3db44fb 1893 1893 1894 1894 _TreeLocation = "user/perspectives/invariant/invariant_help.html" 1895 _doc_viewer = DocumentationWindow(self, -1, \1896 _TreeLocation,"Invariant Help")1895 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 1896 "Invariant Help") 1897 1897 1898 1898 -
src/sas/perspectives/pr/inversion_panel.py
r3d250da3 r3db44fb 958 958 959 959 _TreeLocation = "user/perspectives/pr/pr_help.html" 960 _doc_viewer = DocumentationWindow(self, -1, \961 _TreeLocation,"P(r) Help")960 _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "", 961 "P(r) Help") 962 962 963 963
Note: See TracChangeset
for help on using the changeset viewer.