Changeset 7d6dd6f in sasview


Ignore:
Timestamp:
Oct 25, 2017 5:36:39 AM (22 months ago)
Author:
Adam Washington <adam.washington@…>
Children:
4a9786d8
Parents:
6930b91
Message:

Lock unusable buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py

    r6930b91 r7d6dd6f  
    125125        """Connect the buttons to their appropriate slots.""" 
    126126        self.extrapolateBtn.clicked.connect(self.extrapolate) 
     127        self.extrapolateBtn.setEnabled(False) 
    127128        self.transformBtn.clicked.connect(self.transform) 
     129        self.transformBtn.setEnabled(False) 
    128130 
    129131        self.calculateBgBtn.clicked.connect(self.calculate_background) 
     132        self.calculateBgBtn.setEnabled(False) 
    130133 
    131134        self.model.itemChanged.connect(self.model_changed) 
     
    186189        self._canvas.extrap = extrapolation 
    187190        self._canvas.draw_q_space() 
     191        self.transformBtn.setEnabled(True) 
    188192 
    189193    def transform(self): 
     
    277281        data = GuiUtils.dataFromItem(model_item) 
    278282        self._calculator.set_data(data) 
     283        self.calculateBgBtn.setEnabled(True) 
     284        self.extrapolateBtn.setEnabled(True) 
    279285 
    280286        self._canvas.data = data 
Note: See TracChangeset for help on using the changeset viewer.