Ignore:
Timestamp:
Mar 24, 2010 11:21:13 AM (15 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:
518d35d
Parents:
837a043
Message:

enable and disable smearing option added

File:
1 edited

Legend:

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

    re575db9 r00e8df8  
    5454  
    5555        self._fill_range_sizer()  
    56         #self._on_select_model(event=None) 
     56        self.enable_smearer.Disable() 
     57        self.disable_smearer.Disable() 
    5758        if self.data is None: 
    5859            self.formfactorbox.Disable() 
    5960            self.structurebox.Disable() 
    6061        else: 
    61             self.smearer = smear_selection( self.data ) 
     62            self.smearer = smear_selection(self.data) 
    6263            if self.smearer ==None: 
    6364                self.enable_smearer.Disable() 
     
    853854            self.structurebox.Disable() 
    854855        else: 
     856            self.smearer = smear_selection( self.data ) 
     857            if self.smearer == None: 
     858                self.enable_smearer.Disable() 
     859                self.disable_smearer.Disable() 
     860            else: 
     861                self.enable_smearer.Enable() 
     862                self.disable_smearer.Enable() 
     863                 
    855864            self.formfactorbox.Enable() 
    856865            self.structurebox.Enable() 
     
    10821091            return 
    10831092        temp_smearer = None 
    1084         # make sure once more if it is smearer 
    1085         self.smearer = smear_selection(self.data) 
    1086  
     1093       
    10871094        if self.enable_smearer.GetValue(): 
    10881095            temp_smearer= self.smearer 
Note: See TracChangeset for help on using the changeset viewer.