Changeset 6a7cf2c in sasview for sansguiframe/src


Ignore:
Timestamp:
Sep 14, 2011 11:35:59 AM (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:
14ecd871
Parents:
df83aa4
Message:

removed res plot too on delete data

Location:
sansguiframe/src/sans/guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/data_panel.py

    r296b9c1 r6a7cf2c  
    640640        """ 
    641641        msg = "This operation will delete the data sets checked " 
    642         msg += "and all the related." 
     642        msg += "and all the dependents." 
    643643        msg_box = wx.MessageDialog(None, msg, 'Warning', wx.OK|wx.CANCEL) 
    644644        if msg_box.ShowModal() != wx.ID_OK: 
  • sansguiframe/src/sans/guiframe/gui_manager.py

    rfec4939 r6a7cf2c  
    22582258                                                   group_id=group_id, 
    22592259                                                   action='remove')) 
     2260                #remove res plot: Todo: improve 
     2261                self._remove_res_plot(id) 
    22602262        self._data_manager.delete_data(data_id=data_id,  
    22612263                                       theory_id=theory_id) 
    22622264             
    2263          
     2265    def _remove_res_plot(self, id): 
     2266        """ 
     2267        Try to remove corresponding res plot 
     2268         
     2269        : param id: id of the data 
     2270        """ 
     2271        try: 
     2272            wx.PostEvent(self, NewPlotEvent(id=("res"+id), 
     2273                                           group_id=("res"+id), 
     2274                                           action='remove')) 
     2275        except: 
     2276            pass 
     2277                           
    22642278    def set_current_perspective(self, perspective): 
    22652279        """ 
Note: See TracChangeset for help on using the changeset viewer.