Changeset 3e001f9 in sasview for calculatorview/src/sans/perspectives/calculator/calculator.py
- Timestamp:
- Apr 6, 2013 1:36:03 PM (12 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:
- 4bdd4fdb
- Parents:
- cb270ad2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/calculator.py
r49a8843 r3e001f9 66 66 gensans_help = "Generic SANS" 67 67 pyconsole_help = "Python Console." 68 imageviewer_help = "Load an image file and display the image." 68 69 #data_editor_help = "Meta Data Editor" 69 70 return [("Data Operation", … … 80 81 ("Generic Scattering Calculator", 81 82 gensans_help, self.on_gen_model), 82 ("Python Shell/Editor", pyconsole_help, self.on_python_console)] 83 ("Python Shell/Editor", pyconsole_help, self.on_python_console), 84 ("Image Viewer", imageviewer_help, self.on_image_viewer),] 83 85 84 86 def on_edit_data(self, event): … … 162 164 self.put_icon(frame) 163 165 frame.Show(True) 166 167 def on_image_viewer(self, event): 168 """ 169 Get choose an image file dialog 170 171 :param event: menu event 172 """ 173 from sans.perspectives.calculator.image_viewer import ImageView 174 image_view = ImageView(parent=self.parent) 175 image_view.load() 164 176 165 177 def on_python_console(self, event): … … 193 205 except: 194 206 pass 195 196
Note: See TracChangeset
for help on using the changeset viewer.