Changes in / [6015eee:b229a3b] in sasview


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/basepage.py

    rb4398819 r8a51dea0  
    28012801        Function called when 'Help' button is pressed next to model 
    28022802        of interest.  This calls DocumentationWindow from 
    2803         documentation_window.py. It will load the top level of the html model 
    2804         help documenation sphinx generated if either a plugin model (which 
    2805         normally does not have an html help help file) is selected or if no 
    2806         model is selected. Otherwise, if a regula model is selected, the 
    2807         documention for that model will be sent to a browser window. 
    2808  
    2809         :todo the quick fix for no documentation in plugins is the if statment. 
    2810         However, the right way to do this would be to check whether the hmtl 
    2811         file exists and load the model docs if it does and the general docs if 
    2812         it doesn't - this will become important if we ever figure out how to 
    2813         build docs for plugins on the fly.  Sep 9, 2018 -PDB 
     2803        documentation_window.py. It will load the top level of the model 
     2804        help documenation sphinx generated html if no model is presented. 
     2805        If a model IS present then if documention for that model exists 
     2806        it will load to that  point otherwise again it will go to the top. 
     2807        For Wx2.8 and below is used (i.e. non-released through installer) 
     2808        a browser is loaded and the top of the model documentation only is 
     2809        accessible because webbrowser module does not pass anything after 
     2810        the # to the browser. 
    28142811 
    28152812        :param event: on Help Button pressed event 
    28162813        """ 
    28172814 
    2818         if (self.model is not None) and (self.categorybox.GetValue() 
    2819                                          != "Plugin Models"): 
     2815        if self.model is not None: 
    28202816            name = self.formfactorbox.GetValue() 
    28212817            _TreeLocation = 'user/models/%s.html' % name 
Note: See TracChangeset for help on using the changeset viewer.