Changeset ec6c520 in sasview


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

Files:
1 added
2 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   
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r71fa9028 rec6c520  
    12111211        else: 
    12121212            self._data_panel_menu.SetText('Show Data Explorer') 
    1213              
    1214         self._view_menu.AppendSeparator() 
    1215         id = wx.NewId() 
    1216         hint = "Display batch results into a grid" 
    1217         self._view_menu.Append(id, '&Show Batch Results', hint)  
    1218         wx.EVT_MENU(self, id, self.show_batch_frame) 
    12191213   
    12201214        self._view_menu.AppendSeparator() 
     
    12261220            self._toolbar_menu = self._view_menu.Append(id,'&Show Toolbar', '') 
    12271221        wx.EVT_MENU(self, id, self._on_toggle_toolbar) 
    1228          
     1222                     
     1223        self._view_menu.AppendSeparator() 
     1224        id = wx.NewId() 
     1225        hint = "Display batch results into a grid" 
     1226        self._view_menu.Append(id, '&Show Batch Results', hint)  
     1227        wx.EVT_MENU(self, id, self.show_batch_frame) 
     1228 
    12291229        if custom_config != None: 
    12301230            self._view_menu.AppendSeparator() 
Note: See TracChangeset for help on using the changeset viewer.