Changeset d90f91b in sasview for src/sas/perspectives
- Timestamp:
- Feb 18, 2015 5:10:32 PM (10 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:
- cbe8c5c
- Parents:
- 7d32aaf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/perspectives/calculator/image_viewer.py
reec63a8 rd90f91b 16 16 from sas.dataloader.data_info import Detector 17 17 from sas.dataloader.manipulations import reader2D_converter 18 from sas.guiframe.documentation_window import DocumentationWindow 19 18 20 _BOX_WIDTH = 60 19 21 IS_WIN = True … … 138 140 139 141 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 162 155 163 156 class SetDialog(wx.Dialog):
Note: See TracChangeset
for help on using the changeset viewer.