Ignore:
Timestamp:
Nov 28, 2011 1:35:21 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:
056b569
Parents:
61f557b
Message:

remove sansview from namespace and added editor

File:
1 edited

Legend:

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

    rfdc3cb0 rfb58234  
    6666                          ("SANS Resolution Estimator",  
    6767                        resolution_help, self.on_calculate_resoltuion), 
    68                 ("Python Shell", pyconsole_help, self.on_python_console)] 
     68                ("Python Shell/Editor", pyconsole_help, self.on_python_console)] 
    6969               
    7070    def on_edit_data(self, event): 
     
    133133        :param event: menu event 
    134134        """ 
     135        self.get_python_panel(filename=None) 
     136         
     137    def get_python_panel(self, filename=None): 
     138        """ 
     139        Get the python shell panel 
     140         
     141        :param filename: file name to open in editor 
     142        """ 
    135143        from pyconsole import PyConsole 
    136         frame = PyConsole(parent=self.parent) 
     144        frame = PyConsole(parent=self.parent, filename=filename) 
    137145        self.put_icon(frame) 
    138146        frame.Show(True)  
    139      
     147         
    140148    def put_icon(self, frame): 
    141149        """ 
Note: See TracChangeset for help on using the changeset viewer.