Changeset ebfdf4b in sasview for src/sas/sasgui
- Timestamp:
- Jul 12, 2016 11:13:38 AM (8 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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 711e157
- Parents:
- 0bc0683
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/corfunc/corfunc_panel.py
re73e723 rebfdf4b 14 14 import sas.sasgui.perspectives.corfunc.corfunc 15 15 from sas.sascalc.corfunc.corfunc_calculator import CorfuncCalculator 16 from sas.sasgui.guiframe.documentation_window import DocumentationWindow 16 17 from plot_labels import * 17 18 … … 267 268 return 268 269 self.set_extracted_params(params) 270 271 def on_help(self, event=None): 272 """ 273 Show the corfunc documentation 274 """ 275 tree_location = "user/sasgui/perspectives/corfunc/corfunc_help.html" 276 doc_viewer = DocumentationWindow(self, -1, tree_location, "", 277 "Correlation Function Help") 269 278 270 279 def save_project(self, doc=None): … … 572 581 self._transform_btn = wx.Button(self, wx.NewId(), "Transform") 573 582 self._extract_btn = wx.Button(self, wx.NewId(), "Compute Parameters") 583 help_btn = wx.Button(self, -1, "HELP") 574 584 575 585 self._transform_btn.Disable() … … 579 589 self._transform_btn.Bind(wx.EVT_BUTTON, self.compute_transform) 580 590 self._extract_btn.Bind(wx.EVT_BUTTON, self.extract_parameters) 591 help_btn.Bind(wx.EVT_BUTTON, self.on_help) 581 592 582 593 controls_sizer.Add(extrapolate_btn, wx.CENTER | wx.EXPAND) 583 594 controls_sizer.Add(self._transform_btn, wx.CENTER | wx.EXPAND) 584 595 controls_sizer.Add(self._extract_btn, wx.CENTER | wx.EXPAND) 596 controls_sizer.Add(help_btn, wx.CENTER | wx.EXPAND) 585 597 586 598 controlbox_sizer.Add(controls_sizer, wx.TOP | wx.EXPAND, 0) 587 599 vbox.Add(controlbox_sizer, (4, 0), (1, 1), 588 600 wx.LEFT | wx.RIGHT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 601 589 602 590 603 self.SetSizer(vbox)
Note: See TracChangeset
for help on using the changeset viewer.