Changeset ec6c520 in sasview for calculatorview/src


Ignore:
Timestamp:
Sep 27, 2011 7:33:14 PM (13 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:
861f8317
Parents:
650fd318
Message:

Python console added to tool menu

Location:
calculatorview/src/sans/perspectives/calculator
Files:
1 added
1 edited

Legend:

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

    r7d45a56 rec6c520  
    4949        resolution_help += "resolution of Q in 2D based on the SANS " 
    5050        resolution_help += "instrumental parameter values." 
     51        pyconsole_help = "Python Console from a third party (PyCrust)." 
    5152        #data_editor_help = "Meta Data Editor" 
    5253        return [("SLD Calculator", sld_help, self.on_calculate_sld), 
     
    5657                        kiessig_help, self.on_calculate_kiessig), 
    5758                          ("SANS Resolution Estimator",  
    58                         resolution_help, self.on_calculate_resoltuion)]#, 
    59                 #("Data Editor", data_editor_help, self.on_edit_data)] 
     59                        resolution_help, self.on_calculate_resoltuion), 
     60                ("Python Console", pyconsole_help, self.on_python_console)] 
    6061               
    6162    def on_edit_data(self, event): 
     
    113114        #if event != None: 
    114115        #    event.Skip() 
    115  
     116    def on_python_console(self, event): 
     117        """ 
     118        Open Python Console 
     119         
     120        :param event: menu event 
     121        """ 
     122        from pyconsole import PyConsole 
     123        frame = PyConsole(parent=self.parent) 
     124        frame.Show(True)  
     125     
    116126     
    117127   
Note: See TracChangeset for help on using the changeset viewer.