Changeset 11794f2 in sasview for src


Ignore:
Timestamp:
Jul 20, 2016 6:03:04 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:
13b9a63
Parents:
bf23693
Message:

Add file convertor docs

Location:
src/sas/sasgui/perspectives/file_converter
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/file_converter/converter_panel.py

    r55bc56bc r11794f2  
    1515from sas.sasgui.perspectives.file_converter.meta_panels import SourcePanel 
    1616from sas.sasgui.guiframe.events import StatusEvent 
     17from sas.sasgui.guiframe.documentation_window import DocumentationWindow 
    1718from sas.sasgui.guiframe.dataFitting import Data1D 
    1819from sas.sasgui.guiframe.utils import check_float 
     
    152153            StatusEvent(status="Conversion completed.")) 
    153154 
     155    def on_help(self, event): 
     156        tree_location = ("user/sasgui/perspectives/file_converter/" 
     157            "file_converter_help.html") 
     158        doc_viewer = DocumentationWindow(self, -1, tree_location, 
     159            "", "File Converter Help") 
     160 
    154161    def validate_inputs(self): 
    155162        msg = "You must select a" 
     
    289296        input_grid.Add(convert_btn, (y,0), (1,1), wx.ALL, 5) 
    290297        convert_btn.Bind(wx.EVT_BUTTON, self.on_convert) 
     298 
     299        help_btn = wx.Button(self, -1, "HELP") 
     300        input_grid.Add(help_btn, (y,1), (1,1), wx.ALL, 5) 
     301        help_btn.Bind(wx.EVT_BUTTON, self.on_help) 
    291302 
    292303        section_sizer.Add(input_grid) 
Note: See TracChangeset for help on using the changeset viewer.