Changeset 1c779b6 in sasview for calculatorview/perspectives
- Timestamp:
- Apr 21, 2010 1:49:40 PM (14 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/help_panel.py
r65265c0b r1c779b6 3 3 import wx.html as html 4 4 from wx.lib.splitter import MultiSplitterWindow 5 import sans.perspectives.calculator as calculator 5 6 import os 6 7 def help(): … … 99 100 self.rhelp = html.HtmlWindow(rpanel, -1, style=wx.NO_BORDER, 100 101 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') 104 104 105 self.rhelp.LoadPage(self.path)105 106 106 page1="""<html> 107 107 <body> … … 109 109 </body> 110 110 </html>""" 111 #self.rhelp.SetPage(page1)111 self.rhelp.SetPage(page1) 112 112 page="""<html> 113 113 <body> 114 114 <ul> 115 <li><a href = %starget ="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> 117 117 </ul> 118 118 </body> 119 </html>""" %self.path119 </html>""" 120 120 121 121 self.lhelp.SetPage(page) … … 142 142 Function to diplay html page related to the hyperlinktext selected 143 143 """ 144 #self.rhelp.LoadPage(self.path)144 145 145 link= event.GetLinkInfo().GetHref() 146 link = os.path.join(self.path,link) 146 147 self.rhelp.LoadPage(link) 148 147 149 class ViewApp(wx.App): 148 150 def OnInit(self):
Note: See TracChangeset
for help on using the changeset viewer.