- Timestamp:
- Feb 22, 2011 12:39:12 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:
- d376d31
- Parents:
- e715e4f
- Location:
- sansview
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r20b228a0 r18cdddb 2568 2568 self._draw_model() 2569 2569 2570 2570 2571 def on_model_help_clicked(self,event): 2571 2572 """ … … 2573 2574 """ 2574 2575 from help_panel import HelpWindow 2575 2576 import sans.models as models 2577 2578 # Get models help model_function path 2579 path = models.get_data_path(media='media') 2580 model_path = os.path.join(path,"model_functions.html") 2576 2581 if self.model == None: 2577 2582 name = 'FuncHelp' … … 2579 2584 name = self.model.origin_name 2580 2585 2581 frame = HelpWindow(None, -1, pageToOpen= "media/model_functions.html")2586 frame = HelpWindow(None, -1, pageToOpen=model_path) 2582 2587 frame.Show(True) 2583 2588 if frame.rhelp.HasAnchor(name): … … 2586 2591 msg= "Model does not contains an available description " 2587 2592 msg +="Please try searching in the Help window" 2588 wx.PostEvent(self.parent.parent, StatusEvent(status = msg )) 2593 wx.PostEvent(self.parent.parent, StatusEvent(status = msg )) 2594 2589 2595 -
sansview/perspectives/fitting/help_panel.py
r5062bbf r18cdddb 48 48 self.lhelp = html.HtmlWindow(lpanel, -1, style=wx.NO_BORDER) 49 49 self.rhelp = html.HtmlWindow(rpanel, -1, style=wx.NO_BORDER, size=(500,-1)) 50 51 import sans.models as models 52 # get the media path 53 path = models.get_data_path(media='media') 54 self.path = os.path.join(path,"model_functions.html") 55 50 56 page1="""<html> 51 57 <body> … … 64 70 <li><a href ="media/model_use_help.html" target ="showframe">Visualize Model</a><br></li> 65 71 <li><a href ="media/averaging_help.html" target ="showframe">Data Averaging</a><br></li> 66 <li><a href =" media/model_functions.html" target ="showframe">Model Functions</a><br></li>72 <li><a href ="%s" target ="showframe">Model Functions</a><br></li> 67 73 </ul> 68 74 </body> 69 </html>""" 75 </html>""" % self.path 76 70 77 self.rhelp.SetPage(page1) 71 78 self.lhelp.SetPage(page) … … 95 102 Function to diplay html page related to the hyperlinktext selected 96 103 """ 97 self.rhelp.LoadPage("media/modelfunction.html") 104 105 self.rhelp.LoadPage(self.path) 98 106 99 107 def OnLinkClicked(self, event): -
sansview/setup_exe.py
r8cd029b r18cdddb 91 91 data_files += guiframe.data_files() 92 92 93 import sans.models as models 94 data_files += models.data_files() 95 93 96 for f in matplotlibdata: 94 97 dirname = os.path.join('mpl-data', f[len(matplotlibdatadir)+1:])
Note: See TracChangeset
for help on using the changeset viewer.