Changeset fb0d7a20 in sasview for calculatorview/perspectives/calculator/help_panel.py
- Timestamp:
- Feb 17, 2010 11:44:30 AM (15 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:
- 25f766a
- Parents:
- 420cbdd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/help_panel.py
r427fa87 rfb0d7a20 100 100 size=(500,-1)) 101 101 path = os.getcwd() 102 path= os.path.join(os.path.split(path)[0],"calculatorview",102 self.path= os.path.join(os.path.split(path)[0],"calculatorview", 103 103 "doc","sld_calculator_help.html") 104 104 105 page1="""<html> 106 <body> 107 <p>Select topic on Menu</p> 108 </body> 109 </html>""" 105 self.rhelp.LoadPage(self.path) 110 106 page="""<html> 111 107 <body> … … 114 110 </ul> 115 111 </body> 116 </html>"""% path117 self.rhelp.SetPage(page1)112 </html>"""%self.path 113 118 114 self.lhelp.SetPage(page) 119 115 self.lhelp.Bind(wx.html.EVT_HTML_LINK_CLICKED,self.OnLinkClicked ) 120 116 121 #open the help frame a the current page122 if pageToOpen!= None:123 self.rhelp.LoadPage(str( pageToOpen))124 125 117 vbox.Add(self.rhelp,1, wx.EXPAND) 126 118 vboxl.Add(self.lhelp, 1, wx.EXPAND) … … 143 135 Function to diplay html page related to the hyperlinktext selected 144 136 """ 145 link= event.GetLinkInfo().GetHref() 146 self.rhelp.LoadPage(link) 137 self.rhelp.LoadPage(self.path) 147 138 148 139 class ViewApp(wx.App):
Note: See TracChangeset
for help on using the changeset viewer.