Ignore:
Timestamp:
Apr 20, 2009 2:00:34 PM (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:
2b8b1a2
Parents:
1c1436d
Message:

setvalue after fit.fix display of statictext

File:
1 edited

Legend:

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

    r1c1436d r2872035  
    591591        has_error = False 
    592592        self.text2_3.Hide() 
    593         if hasattr(self,"text_disp_1" ): 
    594             if self.text_disp_1 !=None: 
    595                 self.text_disp_1.Hide() 
     593        n = self.disp_box.GetCurrentSelection() 
     594        dispersity= self.disp_box.GetClientData(n) 
     595        name= dispersity.__name__ 
     596        if name == "GaussianDispersion": 
     597            if hasattr(self,"text_disp_1" ): 
     598                if self.text_disp_1 !=None: 
     599                    self.text_disp_1.Hide() 
    596600        #set the panel when fit result are float not list 
    597601        if out.__class__==numpy.float64: 
     
    603607            if cov !=None : 
    604608                self.text2_3.Show(True) 
    605                 if hasattr(self,"text_disp_1" ): 
    606                     if self.text_disp_1 !=None: 
    607                         self.text_disp_1.Show(True) 
     609                name= dispersity.__name__ 
     610                if name == "GaussianDispersion": 
     611                    if hasattr(self,"text_disp_1" ): 
     612                        if self.text_disp_1 !=None: 
     613                            self.text_disp_1.Show(True) 
    608614                if cov[0]==None:   
    609615                    self.param_toFit[0][3].Hide() 
     
    631637                if(cov !=None)and len(cov)<=len(self.param_toFit)and i < len(cov): 
    632638                    self.text2_3.Show(True)  
    633                     if hasattr(self,"text_disp_1" ): 
    634                         if self.text_disp_1!=None: 
    635                             self.text_disp_1.Show(True) 
     639                    name= dispersity.__name__ 
     640                    if name == "GaussianDispersion": 
     641                        if hasattr(self,"text_disp_1" ): 
     642                            if self.text_disp_1!=None: 
     643                                self.text_disp_1.Show(True) 
    636644                    item[3].Show(True) 
    637645                    item[4].Clear() 
Note: See TracChangeset for help on using the changeset viewer.