Changeset 1c779b6 in sasview for calculatorview/perspectives


Ignore:
Timestamp:
Apr 21, 2010 3:49:40 PM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
a9a6896
Parents:
4834cba
Message:

minor fix and make panel sizer larger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/perspectives/calculator/help_panel.py

    r65265c0b r1c779b6  
    33import wx.html as html 
    44from wx.lib.splitter import MultiSplitterWindow 
     5import sans.perspectives.calculator as calculator 
    56import os 
    67def help(): 
     
    99100        self.rhelp = html.HtmlWindow(rpanel, -1, style=wx.NO_BORDER,  
    100101                                     size=(500,-1)) 
    101         import sans.perspectives.calculator as calculator 
    102         path = calculator.get_data_path(media='media') 
    103         self.path= os.path.join(path,"sld_calculator_help.html") 
     102         
     103        self.path = calculator.get_data_path(media='media') 
    104104        
    105         self.rhelp.LoadPage(self.path) 
     105        
    106106        page1="""<html> 
    107107            <body> 
     
    109109            </body> 
    110110            </html>""" 
    111         #self.rhelp.SetPage(page1) 
     111        self.rhelp.SetPage(page1) 
    112112        page="""<html> 
    113113            <body> 
    114114            <ul> 
    115             <li><a href =%s target ="showframe">SLD Calculator</a><br></li> 
    116             <li><a href ="media/slit_calculator_help.html" target ="showframe">Slit Size Calculator</a><br></li> 
     115            <li><a href ="sld_calculator_help.html" target ="showframe">SLD Calculator</a><br></li> 
     116            <li><a href ="slit_calculator_help.html" target ="showframe">Slit Size Calculator</a><br></li> 
    117117            </ul> 
    118118            </body> 
    119             </html>"""%self.path 
     119            </html>""" 
    120120 
    121121        self.lhelp.SetPage(page) 
     
    142142            Function to diplay html page related to the hyperlinktext selected 
    143143        """ 
    144         #self.rhelp.LoadPage(self.path) 
     144        
    145145        link= event.GetLinkInfo().GetHref() 
     146        link = os.path.join(self.path,link) 
    146147        self.rhelp.LoadPage(link) 
     148         
    147149class ViewApp(wx.App): 
    148150    def OnInit(self): 
Note: See TracChangeset for help on using the changeset viewer.