Ignore:
Timestamp:
Aug 19, 2009 12:13:50 AM (15 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:
191b369
Parents:
27953d1
Message:

sld calculator implemented using elements package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/helpPanel.py

    r6fb01b6 r4faf4ba  
    5959 
    6060class HelpWindow(wx.Frame): 
    61     def __init__(self, parent, id, title): 
     61    def __init__(self, parent, id, title= 'HelpWindow', pageToOpen=None): 
    6262        wx.Frame.__init__(self, parent, id, title, size=(700, 450)) 
    6363        """ 
     
    118118            <li><a href ="doc/model_use_help.html" target ="showframe">Visualize Model</a><br></li> 
    119119            <li><a href ="doc/averaging_help.html" target ="showframe">Data Averaging</a><br></li> 
     120            <li><a href ="doc/sld_calculator_help.html" target ="showframe">SLD Calculator</a><br></li> 
    120121            <li><a href ="doc/model_functions.html" target ="showframe">Model Functions</a><br></li> 
    121122            </ul> 
     
    126127        self.lhelp.Bind(wx.html.EVT_HTML_LINK_CLICKED,self.OnLinkClicked ) 
    127128         
    128         #'HelpWindow' from menu bar, title=model name from 'More Details' button in model penal 
    129         if title != 'HelpWindow': 
    130             self.rhelp.LoadPage("doc/model_functions.html") 
     129        #open the help frame a the current page 
     130        if  pageToOpen!= None: 
     131            self.rhelp.LoadPage(str( pageToOpen)) 
    131132             
    132133        vbox.Add(self.rhelp,1, wx.EXPAND) 
Note: See TracChangeset for help on using the changeset viewer.