Changeset ebfdf4b in sasview for src/sas/sasgui


Ignore:
Timestamp:
Jul 12, 2016 11:13:38 AM (8 years ago)
Author:
lewis
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
Message:

Add help button to corfunc perspective

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/corfunc/corfunc_panel.py

    re73e723 rebfdf4b  
    1414import sas.sasgui.perspectives.corfunc.corfunc 
    1515from sas.sascalc.corfunc.corfunc_calculator import CorfuncCalculator 
     16from sas.sasgui.guiframe.documentation_window import DocumentationWindow 
    1617from plot_labels import * 
    1718 
     
    267268            return 
    268269        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") 
    269278 
    270279    def save_project(self, doc=None): 
     
    572581        self._transform_btn = wx.Button(self, wx.NewId(), "Transform") 
    573582        self._extract_btn = wx.Button(self, wx.NewId(), "Compute Parameters") 
     583        help_btn = wx.Button(self, -1, "HELP") 
    574584 
    575585        self._transform_btn.Disable() 
     
    579589        self._transform_btn.Bind(wx.EVT_BUTTON, self.compute_transform) 
    580590        self._extract_btn.Bind(wx.EVT_BUTTON, self.extract_parameters) 
     591        help_btn.Bind(wx.EVT_BUTTON, self.on_help) 
    581592 
    582593        controls_sizer.Add(extrapolate_btn, wx.CENTER | wx.EXPAND) 
    583594        controls_sizer.Add(self._transform_btn, wx.CENTER | wx.EXPAND) 
    584595        controls_sizer.Add(self._extract_btn, wx.CENTER | wx.EXPAND) 
     596        controls_sizer.Add(help_btn, wx.CENTER | wx.EXPAND) 
    585597 
    586598        controlbox_sizer.Add(controls_sizer, wx.TOP | wx.EXPAND, 0) 
    587599        vbox.Add(controlbox_sizer, (4, 0), (1, 1), 
    588600            wx.LEFT | wx.RIGHT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 
     601 
    589602 
    590603        self.SetSizer(vbox) 
Note: See TracChangeset for help on using the changeset viewer.