Ignore:
Timestamp:
Apr 6, 2013 1:36:03 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

Added tools, imageviwer and qrange cursors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/calculator.py

    r49a8843 r3e001f9  
    6666        gensans_help = "Generic SANS" 
    6767        pyconsole_help = "Python Console." 
     68        imageviewer_help = "Load an image file and display the image." 
    6869        #data_editor_help = "Meta Data Editor" 
    6970        return [("Data Operation",  
     
    8081                ("Generic Scattering Calculator",  
    8182                        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),] 
    8385               
    8486    def on_edit_data(self, event): 
     
    162164        self.put_icon(frame) 
    163165        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() 
    164176         
    165177    def on_python_console(self, event): 
     
    193205                except: 
    194206                    pass       
    195    
    196      
Note: See TracChangeset for help on using the changeset viewer.