Changeset a86e69b in sasview for fittingview/src


Ignore:
Timestamp:
Sep 30, 2011 6:59:08 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:
d682c92
Parents:
b7c6a4a
Message:

improved the paramval copy behavior on changing models

File:
1 edited

Legend:

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

    r62f851f ra86e69b  
    11921192            self.model.name = "M" + str(self.index_model) 
    11931193     
     1194 
    11941195    def _on_select_model(self, event=None):  
    11951196        """ 
    11961197        call back for model selection 
    11971198        """   
    1198          
    11991199        self.Show(False)  
     1200        copy_flag = ''  
     1201        is_poly_enabled = None  
    12001202        if event != None: 
    1201             copy_flag = self.get_copy_params() 
    1202             is_poly_enabled = self.enable_disp.GetValue()  
    1203         else: 
    1204             copy_flag = ''  
    1205             is_poly_enabled = None  
     1203            if (event.GetEventObject() == self.formfactorbox\ 
     1204                        and self.structurebox.GetLabel() != 'None')\ 
     1205                        or event.GetEventObject() == self.structurebox\ 
     1206                        or event.GetEventObject() == self.multifactorbox: 
     1207                copy_flag = self.get_copy_params() 
     1208                is_poly_enabled = self.enable_disp.GetValue()  
     1209 
    12061210        self._on_select_model_helper()  
    12071211        self.set_model_param_sizer(self.model)                    
     
    12941298 
    12951299            # Keep the previous param values 
    1296             if copy_flag: 
     1300            if copy_flag  and self.structurebox.GetLabel() != 'None': 
    12971301                self.get_paste_params(copy_flag) 
    12981302            self._onDraw(event=None) 
Note: See TracChangeset for help on using the changeset viewer.