Changeset 722b7d6 in sasview for src/sas/qtgui/MainWindow/DataExplorer.py
- Timestamp:
- Oct 29, 2018 4:34:53 AM (6 years ago)
- 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:
- ec4a143
- Parents:
- 75906a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r6bc0840 r722b7d6 364 364 pass 365 365 366 def sendData(self, event ):366 def sendData(self, event=None): 367 367 """ 368 368 Send selected item data to the current perspective and set the relevant notifiers … … 1171 1171 Mask Editor for 2D plots 1172 1172 """ 1173 msg = QtWidgets.QMessageBox() 1174 msg.setIcon(QtWidgets.QMessageBox.Information) 1175 msg.setText("Error: cannot apply mask.\n"+ 1176 "Please select a 2D dataset.") 1177 msg.setStandardButtons(QtWidgets.QMessageBox.Ok) 1178 1173 1179 try: 1174 1180 if data is None or not isinstance(data, Data2D): 1181 # if data wasn't passed - try to get it from 1182 # the currently selected item 1175 1183 index = self.current_view.selectedIndexes()[0] 1176 1184 proxy = self.current_view.model() … … 1181 1189 1182 1190 if data is None or not isinstance(data, Data2D): 1183 msg = QtWidgets.QMessageBox() 1184 msg.setIcon(QtWidgets.QMessageBox.Information) 1185 msg.setText("Error: cannot apply mask. \ 1186 Please select a 2D dataset.") 1187 msg.setStandardButtons(QtWidgets.QMessageBox.Cancel) 1191 # If data is still not right, complain 1188 1192 msg.exec_() 1189 1193 return 1190 1194 except: 1191 msg = QtWidgets.QMessageBox()1192 msg.setIcon(QtWidgets.QMessageBox.Information)1193 msg.setText("Error: No dataset selected. \1194 Please select a 2D dataset.")1195 msg.setStandardButtons(QtWidgets.QMessageBox.Cancel)1196 1195 msg.exec_() 1197 1196 return
Note: See TracChangeset
for help on using the changeset viewer.