Changeset e9875db in sasview for sansview/perspectives


Ignore:
Timestamp:
Apr 14, 2011 2:39:23 PM (14 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:
06aa2eeb
Parents:
0f8f831
Message:

Disabled Npts_total w/ proper bg_color on set_data

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    r0cf97c5 re9875db  
    17541754                return  
    17551755            #Check if # of points for theory model are valid(>0). 
    1756             if self.Npts_total.IsEnabled() : 
     1756            if self.Npts_total.IsEditable() : 
    17571757                if check_float(self.Npts_total): 
    17581758                    temp_npts = float(self.Npts_total.GetValue()) 
  • sansview/perspectives/fitting/fitpage.py

    r0f8f831 re9875db  
    195195        # StaticText for chi2, N(for fitting), Npts 
    196196        self.tcChi    =  BGTextCtrl(self, -1, "-", size=(75,20), style=0) 
    197         self.tcChi.SetToolTipString("Chi2/Npts") 
     197        self.tcChi.SetToolTipString("Chi2/Npts(Fit)") 
    198198        self.Npts_fit    =  BGTextCtrl(self, -1, "-", size=(75,20), style=0) 
    199199        self.Npts_fit.SetToolTipString(\ 
     
    16101610                self.btEditMask.Enable()   
    16111611                self.EditMask_title.Enable()  
    1612         self.Npts_total.Disable() 
     1612        self.Npts_total.SetEditable(False) 
     1613        self.Npts_total.SetBackgroundColour(\ 
     1614                                    self.GetParent().GetBackgroundColour()) 
     1615         
     1616        self.Npts_total.Bind(wx.EVT_MOUSE_EVENTS, self._npts_click) 
     1617        #self.Npts_total.Disable() 
    16131618        self.dataSource.SetValue(data_name) 
    16141619        self.qmin_x = data_min 
     
    16361641            self.model_view.Disable() 
    16371642            self._draw_model() 
    1638          
     1643     
     1644    def _npts_click(self, event): 
     1645        """ 
     1646        Prevent further handling of the mouse event on Npts_total 
     1647        by not calling Skip(). 
     1648        """  
     1649        pass 
     1650     
    16391651    def reset_page(self, state,first=False): 
    16401652        """ 
Note: See TracChangeset for help on using the changeset viewer.