Changeset 39d7f74 in sasview


Ignore:
Timestamp:
Oct 26, 2017 7:38:10 AM (7 years ago)
Author:
Adam Washington <adam.washington@…>
Children:
a8b4212
Parents:
1f3794f
Message:

Reset panel when data is loaded.

File:
1 edited

Legend:

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

    r1f3794f r39d7f74  
    291291        self.extrapolateBtn.setEnabled(True) 
    292292 
     293        self.model.setItem(W.W_GUINIERA, QtGui.QStandardItem("")) 
     294        self.model.setItem(W.W_GUINIERB, QtGui.QStandardItem("")) 
     295        self.model.setItem(W.W_PORODK, QtGui.QStandardItem("")) 
     296        self.model.setItem(W.W_PORODSIGMA, QtGui.QStandardItem("")) 
     297        self.model.setItem(W.W_CORETHICK, QtGui.QStandardItem("")) 
     298        self.model.setItem(W.W_INTTHICK, QtGui.QStandardItem("")) 
     299        self.model.setItem(W.W_HARDBLOCK, QtGui.QStandardItem("")) 
     300        self.model.setItem(W.W_CRYSTAL, QtGui.QStandardItem("")) 
     301        self.model.setItem(W.W_POLY, QtGui.QStandardItem("")) 
     302        self.model.setItem(W.W_PERIOD, QtGui.QStandardItem("")) 
     303 
    293304        self._canvas.data = data 
     305        self._canvas.extrap = None 
    294306        self._canvas.draw_q_space() 
    295  
    296         # self.model.item(WIDGETS.W_FILENAME).setData(QtCoreQVariant(self._model_item.text())) 
     307        self.transformBtn.setEnabled(False) 
     308 
     309        self._realplot.data = None 
     310        self._realplot.draw_real_space() 
    297311 
    298312    def setClosable(self, value=True): 
Note: See TracChangeset for help on using the changeset viewer.