Changeset a2b8607 in sasview


Ignore:
Timestamp:
Nov 16, 2018 6:54:47 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
87ca467
Parents:
3b0b17e
git-author:
Piotr Rozyczko <piotr.rozyczko@…> (11/16/18 06:53:57)
git-committer:
Piotr Rozyczko <piotr.rozyczko@…> (11/16/18 06:54:47)
Message:

Use different message on the Fit button when performing simple model
update. SASVIEW-1177

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r671d2fc8 ra2b8607  
    25452545 
    25462546        # Disable buttons/table 
    2547         self.disableInteractiveElements() 
     2547        self.disableInteractiveElementsOnCalculate() 
    25482548        # Awful API to a backend method. 
    25492549        calc_thread = self.methodCalculateForData()(data=data, 
     
    32653265        self.setInteractiveElements(False) 
    32663266 
     3267    def disableInteractiveElementsOnCalculate(self): 
     3268        """ 
     3269        Set buttion caption on fitting/calculate start 
     3270        Disable the param table(s) 
     3271        """ 
     3272        # Notify the user that fitting is being run 
     3273        # Allow for stopping the job 
     3274        self.cmdFit.setStyleSheet('QPushButton {color: red;}') 
     3275        self.cmdFit.setText('Running...') 
     3276        self.setInteractiveElements(False) 
     3277 
    32673278    def readFitPage(self, fp): 
    32683279        """ 
Note: See TracChangeset for help on using the changeset viewer.