Changeset d90f91b in sasview


Ignore:
Timestamp:
Feb 18, 2015 3:10:32 PM (9 years ago)
Author:
butler
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:
cbe8c5c
Parents:
7d32aaf
Message:

Fix Image Viewer Help to point to new documentation. I believe this is
the last place that help is called from current GUI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/calculator/image_viewer.py

    reec63a8 rd90f91b  
    1616from sas.dataloader.data_info import Detector 
    1717from sas.dataloader.manipulations import reader2D_converter 
     18from sas.guiframe.documentation_window import DocumentationWindow 
     19 
    1820_BOX_WIDTH = 60 
    1921IS_WIN = True 
     
    138140 
    139141    def on_help(self, event):     
    140         """ 
    141         Image Viewer help panel 
    142         """ 
    143         from sas.perspectives.calculator.help_panel import  HelpWindow 
    144         # Get models help model_function path 
    145         import sas.perspectives.calculator as calmedia 
    146  
    147         media = calmedia.get_data_path(media='media') 
    148         path = os.path.join(media,"load_image_help.html")  
    149         name = "Image Viewer" 
    150         frame = HelpWindow(self, -1, title=' Help: Image Viewer',   
    151                            pageToOpen=path, size=(640, 450))    
    152         try:  
    153             frame.splitter.DetachWindow(frame.lpanel) 
    154             # Display only the right side one 
    155             frame.lpanel.Hide()  
    156             frame.Show(True) 
    157         except: 
    158             frame.Destroy()  
    159             msg = 'Display Error\n' 
    160             info = "Info" 
    161             wx.MessageBox(msg, info) 
     142        """        
     143        Bring up Image Viewer Documentation from the image viewer window  
     144        whenever the help menu item "how to" is clicked. Calls  
     145        DocumentationWindow with the path of the location within the 
     146        documentation tree (after /doc/ ....".   
     147         
     148        :param evt: Triggers on clicking "how to" in help menu 
     149        """ 
     150                 
     151        _TreeLocation = "user/perspectives/calculator/image_viewer_help.html" 
     152        _doc_viewer = DocumentationWindow(self, -1, \ 
     153             _TreeLocation,"Image Viewer Help") 
     154         
    162155             
    163156class SetDialog(wx.Dialog): 
Note: See TracChangeset for help on using the changeset viewer.