Ignore:
Timestamp:
Apr 29, 2009 9:46:46 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:
1f9ff448
Parents:
6dd2be3
Message:

now no default model displayed initially: it took long to get your model

File:
1 edited

Legend:

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

    r27976fd0 rfbf4bf8  
    3737            description = self.model.description 
    3838             
    39             self.select_model(self.model, self.model.name) 
     39            self.select_model(self.model) 
    4040            self.set_model_description(description,self.sizer2) 
    4141             
     
    101101        """     
    102102        self._on_select_model_helper()  
    103         self.select_model(self.model, self.model.name) 
     103 
     104        self.select_model(self.model) 
    104105         
    105106        
     
    323324         
    324325         
    325     def select_model(self, model, name): 
     326    def select_model(self, model): 
    326327        """ 
    327328            Select a new model 
     
    329330        """ 
    330331        self.model = model 
    331         self.set_model_param_sizer(self.model) 
    332         
     332        if self.model ==None: 
     333            self.set_model_param_sizer(self.model) 
     334            return  
     335        self.set_model_param_sizer(self.model)   
    333336        ## keep the sizer view consistent with the model menu selecting 
    334337        self._set_model_sizer_selection( self.model ) 
     
    448451        if model ==None: 
    449452            ##no model avaiable to draw sizer  
     453            self.sizer3.Layout() 
     454            self.SetScrollbars(20,20,200,100) 
    450455            return 
    451456        box_description= wx.StaticBox(self, -1,str("Model Parameters")) 
Note: See TracChangeset for help on using the changeset viewer.