Changeset 19403da in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Apr 14, 2010 12:56:57 PM (15 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:
aef2cf2
Parents:
36bc34e
Message:

fixed disabled button problem for 2D at the first time loaded

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    r6318298 r19403da  
    20952095            boxsizer1.Add((10,15)) 
    20962096            boxsizer1.Add(object) 
    2097         if not is_2Ddata: 
     2097        if is_2Ddata: 
     2098            self.btEditMask.Enable()   
     2099            self.EditMask_title.Enable()  
     2100        else: 
    20982101            self.btEditMask.Disable()   
    2099             self.EditMask_title.Disable()    
     2102            self.EditMask_title.Disable() 
    21002103        ## save state 
    21012104        self.save_current_state() 
  • sansview/perspectives/fitting/fitpage.py

    r6318298 r19403da  
    11831183                #default:number of data points selected to fit 
    11841184                self.Npts_fit.SetValue(str(len(self.data.x))) 
     1185                self.btEditMask.Disable()   
     1186                self.EditMask_title.Disable() 
    11851187            else: 
    11861188                ## Minimum value of data  
     
    11941196                #default:number of data points selected to fit 
    11951197                self.Npts_fit.SetValue(str(len(self.data.data))) 
     1198                self.btEditMask.Enable()   
     1199                self.EditMask_title.Enable()  
     1200 
    11961201             
    11971202        self.dataSource.SetValue(data_name) 
Note: See TracChangeset for help on using the changeset viewer.