Changeset 998b6b8 in sasview for sansview/perspectives


Ignore:
Timestamp:
Apr 15, 2009 2:07:46 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
6063b16
Parents:
aa1e9a72
Message:

retrived status of checkbox fixed for selected all

Location:
sansview/perspectives/fitting
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/basepage.py

    rb5e98540 r998b6b8  
    432432        if hasattr(self,"cb1"): 
    433433            self.state.cb1= self.cb1.GetValue() 
    434              
     434            print "save current state ",self.state.cb1 
    435435        if hasattr(self,"enable_disp"): 
    436436            self.state.enable_disp= self.enable_disp.GetValue() 
     
    467467        self._set_model_sizer_selection( self.model ) 
    468468        self.set_model_param_sizer(self.model) 
    469          
     469        if hasattr(self, "cb1"):    
     470            self.cb1.SetValue(self.state.cb1) 
    470471        ## display dispersion info layer 
    471472        self.enable_disp.SetValue(self.state.enable_disp) 
     
    477478        if hasattr(self,"enable_smearer"): 
    478479            self.enable_smearer.SetValue(state.enable_smearer) 
    479          
     480         ## reset state of checkbox,textcrtl  and parameters value 
     481        
    480482        ##plotting range restore     
    481483        self._reset_plotting_range() 
    482484        ## reset context menu items 
    483485        self._reset_context_menu() 
    484         ## reset state of checkbox,textcrtl  and parameters value 
    485         if hasattr(self, "cb1"):     
    486             self.cb1.SetValue(self.state.cb1) 
     486        
    487487        self._reset_parameters_state(self.parameters,state.parameters) 
    488488        self._reset_parameters_state(self.fittable_param,state.fittable_param) 
  • sansview/perspectives/fitting/fitpage.py

    rb5e98540 r998b6b8  
    697697         
    698698        if  self.parameters !=[]: 
    699             if  self.cb1.GetValue()==True: 
     699            if  self.cb1.GetValue(): 
    700700                for item in self.parameters: 
    701701                    item[0].SetValue(True) 
     
    723723        for item in self.parameters: 
    724724            #Select parameters to fit for list of primary parameters 
    725             if item[0].GetValue()==True: 
     725            if item[0].GetValue(): 
    726726                if not (item in self.param_toFit): 
    727727                    self.param_toFit.append(item )   
     
    732732        #Select parameters to fit for list of fittable parameters with dispersion           
    733733        for item in self.fittable_param: 
    734             if item[0].GetValue()==True: 
     734            if item[0].GetValue(): 
    735735                if not (item in self.param_toFit): 
    736736                    self.param_toFit.append(item)   
  • sansview/perspectives/fitting/pagestate.py

    ra074145 r998b6b8  
    9797            copy_state = state.clone() 
    9898            obj.saved_states[copy_name]= copy_state 
    99                                             
    100         
    101          
    10299        return obj 
    103100 
  • sansview/perspectives/fitting/simfitpage.py

    r69bee6d r998b6b8  
    105105                sizer.Clear(True) 
    106106                self.sizer_constraints.Remove(sizer) 
    107                 #self.sizer_constraints.Layout() 
     107               
    108108                self.sizer2.Layout() 
    109109                self.SetScrollbars(20,20,200,100) 
Note: See TracChangeset for help on using the changeset viewer.