Changeset ecfcef6 in sasview for sansview/perspectives


Ignore:
Timestamp:
Apr 27, 2011 1:07:22 PM (14 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:
6c62407
Parents:
56d5562
Message:

set check on fit params as a default

File:
1 edited

Legend:

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

    r270e240 recfcef6  
    938938        """ 
    939939        if self.data is None: 
    940             msg = "Please select a Data first..." 
     940            msg = "Please get Data first..." 
    941941            wx.MessageBox(msg, 'Info') 
    942942            wx.PostEvent(self._manager.parent, StatusEvent(status=\ 
     
    949949                            "Fit: %s"%msg, type="stop")) 
    950950            return 
    951  
     951         
     952        if len(self.param_toFit) <= 0: 
     953            msg= "Select at least one parameter to fit" 
     954            wx.MessageBox(msg, 'Info') 
     955            wx.PostEvent(self._manager.parent, StatusEvent(status= msg,  
     956                                                         type="stop" )) 
     957            return  
     958         
    952959        flag = self._update_paramv_on_fit()  
    953960                 
     
    957964                                                         type="stop")) 
    958965            return  
    959          
    960         if len(self.param_toFit) <= 0: 
    961             msg= "Select at least one parameter to fit" 
    962             wx.PostEvent(self.parent.parent, StatusEvent(status= msg,  
    963                                                          type="stop" )) 
    964             return  
    965        
     966               
    966967        self.select_param(event =None) 
    967968         
     
    10211022        self._on_select_model_helper()  
    10221023        self.set_model_param_sizer(self.model)                    
    1023          
    10241024        if self.model is None: 
    10251025            self._set_bookmark_flag(False) 
     
    25242524        wx.EVT_CHECKBOX(self, self.cb1.GetId(), self.select_all_param) 
    25252525        self.cb1.SetToolTipString("To check/uncheck all the boxes below.") 
    2526         #self.cb1.SetValue(True) 
     2526        self.cb1.SetValue(True) 
    25272527         
    25282528        sizer.Add(self.cb1,(iy, ix),(1,1),\ 
Note: See TracChangeset for help on using the changeset viewer.