Changeset ec538c7 in sasview


Ignore:
Timestamp:
Oct 14, 2011 5:00:06 PM (13 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

add help for batch

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  
    66import os 
    77 
     8from wx.lib.scrolledpanel import ScrolledPanel 
    89 
     10class HelpPanel(ScrolledPanel): 
     11    def __init__(self, parent, **kwargs): 
     12        ScrolledPanel.__init__(self, parent, **kwargs) 
     13        self.SetupScrolling() 
     14         
    915class HelpWindow(wx.Frame): 
    1016    """ 
     
    6369        fitting_path = fit_path(media='media') 
    6470         
    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                      ] 
    7282 
    7383                     
     
    8191            <ul> 
    8292            """ 
    83         for p, title in _html_file.iteritems(): 
     93        for (p, title) in _html_file: 
    8494            pp = os.path.join(fitting_path, p) 
    8595            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) 
    94107         
    95108        self.rhelp.SetPage(page1) 
     
    130143         
    131144        self.rhelp.LoadPage(os.path.abspath(link)) 
     145     
    132146         
    133147""" 
Note: See TracChangeset for help on using the changeset viewer.