Changeset 72637e8 in sasview


Ignore:
Timestamp:
Feb 9, 2009 11:42:01 AM (16 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:
a69e233
Parents:
2e9b98c
Message:

Disabled fitting range modifying 2d model plot

File:
1 edited

Legend:

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

    r4cb07c0 r72637e8  
    278278        self.model=None 
    279279        #dictionary of model name and model class 
    280         self.model_list_box={} 
    281          
    282        
     280        self.model_list_box={}     
     281                      
     282        if self.model == None: 
     283            self.qmin.Disable() 
     284            self.qmax.Disable()  
     285        else: 
     286            self.qmin.Enable() 
     287            self.qmax.Enable()  
     288 
    283289        
    284290        self.vbox.Layout() 
     
    369375        self.Layout() 
    370376        self.parent.GetSizer().Layout() 
     377 
    371378        for item in self.model_list_box.itervalues(): 
    372379            name = item.__name__ 
     
    374381                name = item.name 
    375382            #print "fitpage: _on_select_model model name",name ,event.GetString() 
     383            if name == None: 
     384                self.qmin.Disable() 
     385                self.qmax.Disable()  
     386            else: 
     387                self.qmin.Enable() 
     388                self.qmax.Enable()  
     389             
    376390            if name ==event.GetString(): 
    377391                try: 
Note: See TracChangeset for help on using the changeset viewer.