Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/basepage.py

    rc8e1996 rcf2e6b4  
    5252    FONT_VARIANT = 1 
    5353    ON_MAC = True 
    54  
    5554 
    5655class BasicPage(ScrolledPanel, PanelBase): 
     
    14571456                self.state_change = True 
    14581457                self._draw_model() 
     1458                # Time delay has been introduced to prevent _handle error 
     1459                # on Windows 
     1460                # This part of code is executed when model is selected and 
     1461                # it's parameters are changed (with respect to previously 
     1462                # selected model). There are two Iq evaluations occuring one 
     1463                # after another and therefore there may be compilation error 
     1464                # if model is calculated for the first time. 
     1465                # This seems to be Windows only issue - haven't tested on Linux 
     1466                # though.The proper solution (other than time delay) requires 
     1467                # more fundemental code refatoring 
     1468                # Wojtek P. Nov 7, 2016 
     1469                if not ON_MAC: 
     1470                    time.sleep(0.1) 
    14591471                self.Refresh() 
    14601472 
     
    23912403 
    23922404        # Redraw the model 
    2393         self._draw_model() 
     2405        #  Wojtek P. Nov 7, 2016: Redrawing seems to be unnecessary here 
     2406        # self._draw_model() 
    23942407        # self._undo.Enable(True) 
    23952408        event = PageInfoEvent(page=self) 
Note: See TracChangeset for help on using the changeset viewer.