Changeset ec538c7 in sasview for fittingview/src/sans/perspectives
- Timestamp:
- Oct 14, 2011 5:00:06 PM (13 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:
- 6a83ba4
- Parents:
- 466dae7
- Location:
- fittingview/src/sans/perspectives/fitting
- Files:
-
- 8 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/help_panel.py
r70b760da rec538c7 6 6 import os 7 7 8 from wx.lib.scrolledpanel import ScrolledPanel 8 9 10 class HelpPanel(ScrolledPanel): 11 def __init__(self, parent, **kwargs): 12 ScrolledPanel.__init__(self, parent, **kwargs) 13 self.SetupScrolling() 14 9 15 class HelpWindow(wx.Frame): 10 16 """ … … 63 69 fitting_path = fit_path(media='media') 64 70 65 _html_file = {"status_bar_help.html":"Status Bar Help", 66 "load_data_help.html":"Load a File", 67 "simultaneous_fit_help.html":"Simultaneous Fit", 68 "single_fit_help.html":"Single Fit", 69 "model_use_help.html":"Model Selection", 70 "key_help.html":"Key Combination", 71 } 71 _html_file = [("load_data_help.html", "Load a File"), 72 ("single_fit_help.html", "Single Fit"), 73 ("simultaneous_fit_help.html", "Simultaneous Fit"), 74 ("batch_help.html", "Batch Fit"), 75 ("model_use_help.html", "Model Selection"), 76 ("%s" % self.path, "Model Functions"), 77 ("%s" % self.path_pd, "Polydispersion Distributions"), 78 ("%s" % self.path_sm, "Smear Computation"), 79 ("key_help.html", "Key Combination"), 80 ("status_bar_help.html", "Status Bar Help"), 81 ] 72 82 73 83 … … 81 91 <ul> 82 92 """ 83 for p, title in _html_file.iteritems():93 for (p, title) in _html_file: 84 94 pp = os.path.join(fitting_path, p) 85 95 page += """<li><a href ="%s" target="showframe">%s</a><br></li>""" % (pp, title) 86 87 page += """ 88 <li><a href ="%s" target="showframe">Model Functions</a><br></li> 89 <li><a href ="%s" target="showframe">Polydispersion Distributions</a><br></li> 90 <li><a href ="%s" target="showframe">Smear Computation</a><br></li> 91 </ul> 92 </body> 93 </html>""" % (self.path, self.path_pd, self.path_sm) 96 page += """</ul> 97 </body> 98 </html> 99 """ 100 #page += """ 101 # <li><a href ="%s" target="showframe">Model Functions</a><br></li> 102 # <li><a href ="%s" target="showframe">Polydispersion Distributions</a><br></li> 103 # <li><a href ="%s" target="showframe">Smear Computation</a><br></li> 104 # </ul> 105 # </body> 106 # </html>""" % (self.path, self.path_pd, self.path_sm) 94 107 95 108 self.rhelp.SetPage(page1) … … 130 143 131 144 self.rhelp.LoadPage(os.path.abspath(link)) 145 132 146 133 147 """
Note: See TracChangeset
for help on using the changeset viewer.