Changeset eb63b76 in sasview for sansview/perspectives


Ignore:
Timestamp:
Jun 20, 2011 1:53:48 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:
0fb74ef
Parents:
5c3d2d3
Message:

reset value with before set value with results: MAC only

File:
1 edited

Legend:

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

    r054c10a reb63b76  
    13151315        """ 
    13161316        if self.is_mac: 
     1317            if len(self.parameters)>0: 
     1318                for item in self.parameters: 
     1319                    #Skip t ifhe angle parameters if 1D data 
     1320                    if self.data.__class__.__name__ !=  "Data2D" and \ 
     1321                            not self.enable2D: 
     1322                        if item in self.orientation_params: 
     1323                            continue 
     1324                    ## hide statictext +/-     
     1325                    if len(item) < 4 : 
     1326                        continue 
     1327                    ## reset value with '' 
     1328                    if item[4]!=None and item[4].IsShown():                    
     1329                        item[4].SetValue("") 
    13171330            return 
     1331         
    13181332        if hasattr(self,"text2_3"): 
    13191333            self.text2_3.Hide() 
Note: See TracChangeset for help on using the changeset viewer.