Changeset 7fd4afd in sasview


Ignore:
Timestamp:
Oct 23, 2011 10:25:22 AM (13 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:
8a5fecd
Parents:
bb8a180
Message:

put callafter into draw_model

Location:
fittingview/src/sans/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/basepage.py

    rbb8a180 r7fd4afd  
    773773        self._manager.on_perspective(event) 
    774774        self.onResetModel(event) 
    775         wx.CallAfter(self._onDraw, None) 
     775        self._draw_model() 
    776776         
    777777         
     
    18051805                            break 
    18061806                    break 
    1807      
     1807                 
    18081808    def _draw_model(self, update_chisqr=True, source='model'): 
     1809        """ 
     1810        Method to draw or refresh a plotted model. 
     1811        The method will use the data member from the model page 
     1812        to build a call to the fitting perspective manager. 
     1813         
     1814        :param chisqr: update chisqr value [bool] 
     1815        """ 
     1816        wx.CallAfter(self._draw_model_after, update_chisqr, source) 
     1817         
     1818    def _draw_model_after(self, update_chisqr=True, source='model'): 
    18091819        """ 
    18101820        Method to draw or refresh a plotted model. 
  • fittingview/src/sans/perspectives/fitting/fitpage.py

    rbb8a180 r7fd4afd  
    13231323                 
    13241324        else: 
    1325             wx.CallAfter(self._draw_model) 
     1325            self._draw_model() 
    13261326             
    13271327        if self.batch_on: 
Note: See TracChangeset for help on using the changeset viewer.