Changes in src/sas/qtgui/Perspectives/Fitting/ConstraintWidget.py [72651df:2e5081b] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/ConstraintWidget.py
r72651df r2e5081b 33 33 self.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove) 34 34 35 self._is_dragged = True35 self._is_dragged = False 36 36 37 37 def isDragged(self): … … 872 872 """ 873 873 selected_rows = self.selectedParameters(self.tblTabList) 874 if len(selected_rows)!=2: 875 msg = "Please select two fit pages from the Source Choice table." 876 msgbox = QtWidgets.QMessageBox(self.parent) 877 msgbox.setIcon(QtWidgets.QMessageBox.Warning) 878 msgbox.setText(msg) 879 msgbox.setWindowTitle("2 fit page constraints") 880 retval = msgbox.exec_() 881 return 882 883 tab_list = [ObjectLibrary.getObject(self.tblTabList.item(s, 0).data(0)) for s in selected_rows] 874 875 tab_list = [ObjectLibrary.getObject(self.tblTabList.item(s, 0).data(0)) for s in range(self.tblTabList.rowCount())] 884 876 # Create and display the widget for param1 and param2 885 877 cc_widget = ComplexConstraint(self, tabs=tab_list)
Note: See TracChangeset
for help on using the changeset viewer.