Changeset 81a7b6c in sasview for fittingview


Ignore:
Timestamp:
Oct 21, 2011 12:13:38 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:
f6518f8
Parents:
e4d790f
Message:

simpage update on delete data

Location:
fittingview/src/sans/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/fitpanel.py

    rdafc36f r81a7b6c  
    592592                    break  
    593593            del page_finder[selected_page] 
    594         ##remove the check box link to the model name of this page (selected_page) 
    595         try: 
    596             self.sim_page.draw_page() 
    597         except: 
    598             ## that page is already deleted no need to remove check box on 
    599             ##non existing page 
    600             pass 
     594 
    601595                 
    602596        #Delete the name of the page into the list of open page 
     
    606600                del self.opened_pages[selected_page.uid] 
    607601                break  
    608        
     602        ##remove the check box link to the model name of this page (selected_page) 
     603        try: 
     604            self.sim_page.draw_page() 
     605        except: 
     606            ## that page is already deleted no need to remove check box on 
     607            ##non existing page 
     608            pass      
  • fittingview/src/sans/perspectives/fitting/simfitpage.py

    rfdb1f375 r81a7b6c  
    278278        self.constraint_dict={} 
    279279        self.nb_constraint= 0 
     280        self.model_cbox_left = None 
     281        self.model_cbox_right = None 
    280282         
    281283        if len(self.model_list)>0: 
     
    562564        self._store_model() 
    563565        if self.model_cbox_left != None: 
    564             self.model_cbox_left.Clear() 
     566            try: 
     567                self.model_cbox_left.Clear() 
     568            except: 
     569                pass 
    565570            self.model_cbox_left = None 
    566571        if self.model_cbox_right != None: 
    567             self.model_cbox_right.Clear() 
     572            try: 
     573                self.model_cbox_right.Clear() 
     574            except: 
     575                pass 
    568576            self.model_cbox_right = None 
    569577        self.constraints_list = []    
Note: See TracChangeset for help on using the changeset viewer.