Ignore:
Timestamp:
Aug 31, 2009 11:26:06 AM (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:
b7a25a7e
Parents:
ab62adb
Message:

cleaning the code for saving option

File:
1 edited

Legend:

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

    r30d103a r1467e1a6  
    10871087                            break 
    10881088                    break 
    1089         ## save state and post 
    1090          
    1091                      
    1092          
     1089     
     1090     
    10931091    def _draw_model(self): 
    10941092        """ 
     
    14011399    def _set_dipers_Param(self, event): 
    14021400        """ 
    1403             Add more item to select user dispersity 
    1404         """ 
     1401            respond to self.enable_disp and self.disable_disp radio box. 
     1402            The dispersity object is reset inside the model into Gaussian.  
     1403            When the user select yes , this method display a combo box for more selection 
     1404            when the user selects No,the combo box disappears. 
     1405            Redraw the model with the default dispersity (Gaussian) 
     1406        """ 
     1407         
    14051408        self._reset_dispersity() 
    1406  
     1409     
    14071410        if self.model ==None: 
    14081411            self.model_disp.Hide() 
    14091412            self.disp_box.Hide() 
    14101413            self.sizer4_4.Clear(True) 
    1411             ## save the state of the dispersity 
    1412             #self.save_current_state() 
     1414       
    14131415            return 
    14141416             
     
    14371439            event = PageInfoEvent(page = self) 
    14381440            wx.PostEvent(self.parent, event) 
    1439          
     1441        #draw the model with the current dispersity 
    14401442        self._draw_model() 
    14411443        self.sizer4_4.Layout() 
     
    15061508                    pass 
    15071509                                # Redraw the model 
    1508                 self._draw_model() 
     1510                #self._draw_model() 
    15091511        ## save state into 
    15101512        self.save_current_state() 
Note: See TracChangeset for help on using the changeset viewer.