Changeset 74f6c7e in sasview for src


Ignore:
Timestamp:
Feb 18, 2015 6:27:19 AM (10 years ago)
Author:
butler
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:
0d9401e
Parents:
e4d4de2
Message:

Update basepage so that polydispersity help now pulls from the new
documentation

File:
1 edited

Legend:

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

    r6e653582 r74f6c7e  
    30433043    def on_model_help_clicked(self, event): 
    30443044        """ 
    3045         on 'More details' button 
     3045        Function called when 'Details' button is pressed next to model 
     3046        of interest.  As of Feb 2015 this function follows two paths: 
     3047        For regular models that ship with the release, it calls the Sphinx 
     3048        generated html documentation.  For plugin models it still uses the 
     3049        old pop up window reading the description provided in the model. 
     3050         
     3051        This will presumably be deprecated when the sas mdels team decides 
     3052        on how to discover new models and grab their documentation from the 
     3053        file. 
     3054         
     3055        PDB 18 Feb 2015 
     3056         
     3057        :param evt: on Details Button pressed event 
    30463058        """ 
    30473059        from sas.perspectives.fitting.help_panel import  HelpWindow 
     
    30523064        model_path = os.path.join(path, "model_functions.html") 
    30533065        if self.model == None: 
    3054             name = 'FuncHelp' 
     3066            name = 'index.html' 
    30553067        else: 
    30563068            name = self.formfactorbox.GetValue() 
    30573069        frame = HelpWindow(None, -1, pageToOpen=model_path) 
    3058         # If model name exists and model is not a custom model 
     3070        #If model name exists and model is not a custom model 
    30593071        #mod_cat = self.categorybox.GetStringSelection() 
    30603072        if frame.rhelp.HasAnchor(name): 
     
    31313143    def on_pd_help_clicked(self, event): 
    31323144        """ 
    3133         Button event for PD help 
    3134         """ 
    3135         from help_panel import  HelpWindow 
    3136         import sas.models as models 
    3137          
    3138         # Get models help model_function path 
    3139         path = models.get_data_path(media='media') 
    3140         pd_path = os.path.join(path, "pd_help.html") 
    3141  
    3142         frame = HelpWindow(None, -1, pageToOpen=pd_path) 
    3143         frame.Show(True) 
     3145        Bring up Polydispersit Documentation whenever the ? button is clicked.  
     3146        Calls DocumentationWindow with the path of the location within the 
     3147        documentation tree (after /doc/ ...." 
     3148         
     3149        :param evt: Triggers on clicking ? in polydispersity box 
     3150        """ 
     3151         
     3152        from sas.guiframe.documentation_window import DocumentationWindow 
     3153         
     3154        _TreeLocation = "user/perspectives/fitting/fitting_help.html" 
     3155        _TreeLocation += "#polydispersity-distributions" 
     3156        _doc_viewer = DocumentationWindow(self, -1, \ 
     3157             _TreeLocation,"Polydispersity Help") 
    31443158         
    31453159    def on_left_down(self, event): 
Note: See TracChangeset for help on using the changeset viewer.